A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Read From A Saved MSG File



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 25th 08, 06:34 PM posted to microsoft.public.outlook.program_vba
Justin
external usenet poster
 
Posts: 25
Default 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?
Ads
  #2  
Old November 25th 08, 09:18 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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?


  #3  
Old November 25th 08, 09:48 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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?




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to read saved email messages Flyboy Bob Outlook Express 1 January 11th 08 04:47 AM
how do I print to file and convert same file so it can be read? fredzo Outlook - Calandaring 2 February 11th 07 04:53 PM
Importing .dbx files that are saved to a DVD and read-only issues Sportsluvr Outlook Express 11 January 6th 07 09:31 AM
Can not point outlook to read pst file from a backup file Jaime Outlook - Installation 1 May 19th 06 10:42 PM
RUN DTS PACKAGE FILE SAVED AS .BAS (VB MODULE FILE) TOM - BP Outlook and VBA 1 April 24th 06 11:37 PM


All times are GMT +1. The time now is 08:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.