

That also seems cumbersome, but I couldn't find a way to get to the Mailbox folder directly. It seems a little more cumbersome than getting the parent of the inbox. Set RptFolder = Mailbox.Folders("Reports")Īnother way would be to scan the items under "ns" to find the one that starts with "Mailbox", then get the Reports folder under that. To get to your Reports folder, one way is to get the Inbox folder as you are currently doing, then get its parent, then get the Reports folder under that. Extracts all Outlook attachments from command-line like /extractall command and also set the read flag. cfg file, or according to other configuration file that you load with /cfg command-line option. If you include the library name, you should get the one you need. Extracts all Outlook attachments from command-line, according to your last settings saved in the default. There is such a thing as an Access.Attachment which does not have a SaveAsFile method, and it's probably picking that one up first. Try declaring your Atmt as an Outlook.Attachment. And I assume that you have created the Automation folder that you mention. You could print out the Filename that you are creating to see if it's a valid name.

Double-click the message that contains the attachment you want to preview. Your syntax for saving attachments looks correct (apart from your comments not being correct for VBA). Outlook can preview attachments created in Microsoft Office without downloading them to your computer. Set Inbox = ns.GetDefaultFolder(olFolderInbox) Heres how to find it and your lost attachments. Is your Reports folder within your Inbox folder? You may need to do something like this: Set ns = GetNamespace("MAPI") Microsoft Outlook creates a Temporary or OLK folder where it stores attachments opened while reading emails.
