PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Check if folder exist

Reply

Check if folder exist

 
Thread Tools Rate Thread
Old 25-09-2003, 09:37 PM   #1
=?iso-8859-1?B?SmF5qQ==?=
Guest
 
Posts: n/a
Default Check if folder exist


Hi I'm trying to check if a folder exist and if not create
the folder. I have the code below but I keep on getting an
error "an object could not be found".

Set f5 = f4.Folders(mfolder) 'this works
Set f6 = f5.Folders(mr_number) 'this blows up
If f6 Is Nothing Then
f5.Folders.Add (mr_number)
End If

Anybody can help?

Thanks,
Jay


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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