Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Read From A Saved MSG File (http://www.outlookbanter.com/outlook-vba/82284-read-saved-msg-file.html)

Justin November 25th 08 06:34 PM

Read From A Saved MSG File
 
I need to open various *.msg files saved into a Project folder, and list them
in an MS-Access form. The form elements are all set, but I cannot find any
example of reading properties from msg files (From, To, etc.). Any ideas?

Ken Slovak - [MVP - Outlook] November 25th 08 09:18 PM

Read From A Saved MSG File
 
You will need to use the Outlook object model. Use
Application.CreateItemFromTemplate() to open the MSG files and then read the
properties normally as Outlook item properties.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Justin" wrote in message
...
I need to open various *.msg files saved into a Project folder, and list
them
in an MS-Access form. The form elements are all set, but I cannot find
any
example of reading properties from msg files (From, To, etc.). Any ideas?



Dmitry Streblechenko November 25th 08 09:48 PM

Read From A Saved MSG File
 
Keep in mind that Outlook will strip out all the sender related properties

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ken Slovak - [MVP - Outlook]" wrote in message
...
You will need to use the Outlook object model. Use
Application.CreateItemFromTemplate() to open the MSG files and then read
the properties normally as Outlook item properties.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Justin" wrote in message
...
I need to open various *.msg files saved into a Project folder, and list
them
in an MS-Access form. The form elements are all set, but I cannot find
any
example of reading properties from msg files (From, To, etc.). Any
ideas?






All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com