Re: How to determine if a MAPI folder exists?

  • Thread starter Sue Mosher [MVP-Outlook]
  • Start date
S

Sue Mosher [MVP-Outlook]

To get a non-default folder, you need to walk the folder hierarchy using the
Folders collections or use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm If the result is Nothing,
then the folder doesn't exist, e.g.

Set objFolder = GetFolder("Personal Folders\My Folder")
If objFolder Is Nothing Then
' you need to create it
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top