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 » Search Forums
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Showing results 1 to 10 of 10
Search took 0.03 seconds.
Search: Posts made by: Ariel
Forum: Outlook and VBA August 22nd 06, 07:35 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
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]"...
Forum: Outlook and VBA August 22nd 06, 06:22 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

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...
Forum: Outlook and VBA August 22nd 06, 06:51 AM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

I just got the same error again.

Please tell me how to run the function. Does it need to be imbedded within a
sub routine or can it be run on its own like in excel or access?

"Michael Bauer [MVP -...
Forum: Outlook and VBA August 22nd 06, 05:41 AM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

Hi Ken,

I placed the routine in ThisOutlookSession and got the same error as always

"Could not complete the operation. One or more parameter values are
not valid."

There is a Junk folder and it...
Forum: Outlook and VBA August 21st 06, 11:35 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

I got the same error.

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

Try olFolderJunk. There is no enum member olFolderSpam.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Forum: Outlook and VBA August 21st 06, 07:22 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

Hi Michael,

When walking through the code, it fails at that same line as befo

Set Folder = Application.Session.GetDefaultFolder(olFolderSpam)

I assume that you believe that it has to do with...
Forum: Outlook and VBA August 20th 06, 10:56 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

Hi Michael,

I am placing the code in the ThisOutlookSession module, so I assume that the
path is "Personal Folders\Spam."

I am not getting any error message now, but nothing is happening?

Thanks...
Forum: Outlook and VBA August 18th 06, 04:24 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

Guten tag, Michael.

I am using Outlook 2003. The Spam folder is a folder under Personal Folders.
This code does not appear to find that folder, and thus it ends without doing...
Forum: Outlook and VBA August 18th 06, 02:18 AM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

Hi Michael,

I am getting an error on the line:

Set Items = Application.Session.GetDefaultFolder(olFolderJunk).Items

Stating "Could not complete the operation. One or more parameter values are...
Forum: Outlook and VBA August 16th 06, 08:38 PM Posted to microsoft.public.outlook.program_vba
Replies: 21
Views: 2,774
Posted By Ariel
deleting all messages in a folder

What code can I use to delete all messages in a folder (e.g. spam mail folder)?

Thanks in advance!
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT +1. The time now is 05:32 AM.


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.