How to extract documents from .msg files

R

Rajat

I have a folder where Email Messges are saved (.msg files). Arounf 200 files
all containing 1 attachment (a word document)

What I intended to do is that any programme or process by which the
attachment (word file) can be saved in a folder eigther in the same name of
the email ID or or Name of the file.

If this is not possible then if all the attachment (word files) are
extracted or put in a folder will also help me a lot.
 
S

Sue Mosher [MVP]

You can write Outlook VBA code to use the Application.CreateItemFromTemplate
to create a new item based on the .msg file. From that item, iterate its
Attachments collection and call each attachment's SaveAsFile method to store
the attachment in the file system.

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
 
R

Rajat

Dear Sue,

I am novice in VBA so can you please explain the process how to do that.

thnaks in advance
regards
Rajat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top