A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

deleting all messages in a folder



 
 
Thread Tools Search this Thread Display Modes
  #21  
Old August 22nd 06, 08:35 PM posted to microsoft.public.outlook.program_vba
Ariel
external usenet poster
 
Posts: 10
Default deleting all messages in a folder

after it runs through the entire function it appears to fail at the last line
of the function (which doesn't make much sense given the line:

Set objNS = Nothing

"Ken Slovak - [MVP - Outlook]" wrote:

What line produced the error?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ariel" wrote in message
...
Michael and Ken,

I tried the function but it errored out on a type mismatch.

I will run the scanPST as Michael suggests and try this again. I have
Outlook Spy loaded, so if you tell me where to look for the folder code, I
can try and retrieve it

Thanks again, guys

Ariel



Ads
  #22  
Old August 23rd 06, 03:45 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default deleting all messages in a folder

That makes no sense at all. It would only make sense if it was in
Application_Quit, where all Outlook objects are out of scope already.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ariel" wrote in message
...
after it runs through the entire function it appears to fail at the last
line
of the function (which doesn't make much sense given the line:

Set objNS = Nothing


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
download messages without deleting messages on server problem Eric Outlook - Installation 1 March 21st 06 07:21 PM
deleting downloaded messages from newsgroups R..VENKATARAMAN Outlook Express 4 March 21st 06 05:24 AM
Deleting messages in Outlook XP Dean Outlook - General Queries 1 March 14th 06 02:23 PM
OE EXP. 6.0 Deleting Messages ralphS Outlook Express 1 February 15th 06 08:45 PM
deleting messages Shanny Outlook Express 3 January 18th 06 05:44 PM


All times are GMT +1. The time now is 01:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.