Outlook Set Mapifolder to a string? How do I do that?
Posted on 2003-12-05
I have some code that I want to cycle through a certain Inbox and save the Attachments. This Inbox may change but I do know the path..
"\\Mailbox - 3114 Test\Inbox" one time
"\\Mailbox - 3115 Test\Inbox" next ...
Dim myOlapp As Outlook.Application
Dim myoMsg As Outlook.MailItem
Dim myOFolder As Outlook.MAPIFolder
myOlapp = CreateObject("Outlook.Application")
myoMsg = myOlapp.CreateItem(Outlook.OlItemType.olMailItem)
-- myOFolder = "\\Mailbox - 3114 Westin\Inbox" -----
Here is where I get an error? How do I set the folder to this string?