I found the code to use for saving an attachment in an email to an external folder. (could not post to that threat - http://www.ozgrid.com/forum/showthread.php?t=59353 - so had to create a new one) However I am getting an error. The line of code is:
Set myFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
Set myFolder = myFolder.Folders("Daily Reports")
The second line is the one with the error. It is a runtime error indicating an object can not be found. The folder is actually a sub folder of a sub folder or a Folder called My Folders. The "My Folders" folder is not a sub folder of the main inbox but a sibling (for lack of better words)
I tried to change the first line to:
but then received the error on that line. If it helps, here is the set up of my outlook if it helps:
Mailbox
-Inbox
-My Folders
-- Inbound Items
--- Reports
---- Daily Reports
The email with the attachments are in the "Daily Reports" sub folder
Any Help wouold be appreciated.