How to extract documents from .msg files

  • Thread starter Thread starter Rajat
  • Start date Start date
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.
 
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
 
Dear Sue,

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

thnaks in advance
regards
Rajat
 
Back
Top