Rog D
asked on
Outlook Set Mapifolder to a string? How do I do that?
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.Appl ication")
myoMsg = myOlapp.CreateItem(Outlook .OlItemTyp e.olMailIt em)
-- myOFolder = "\\Mailbox - 3114 Westin\Inbox" -----
Here is where I get an error? How do I set the folder to this string?
Thanks,
Rog
"\\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.Appl
myoMsg = myOlapp.CreateItem(Outlook
-- myOFolder = "\\Mailbox - 3114 Westin\Inbox" -----
Here is where I get an error? How do I set the folder to this string?
Thanks,
Rog
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.