-
Outlook Folders
Hi All,
I have created a folder called "Reports", which is in my Mailbox, outside my inbox. My problem is I cannot access it via VBA. I can access all the other folders using "MAPI".
Code:
Set oApp = New Outlook.Application
'Reference the default Inbox
Set oInbox = oApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)' sets to the Inbox folder, I want my folder "Reports"
Set myNewFolder = oInbox.Folders("Reports")
Can I set the "GetDefaultFolder(olFolderInbox)" to something else to access the folder I created?
Hope this is clear enough!
mccreaso
-
Re: Outlook Folders
Thats because its not a "Default" folder as you have created it. Use the Folders collection. ;)