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

Importing .msg files into a .pst file



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 2nd 06, 01:14 AM posted to microsoft.public.outlook.program_vba
Stever
external usenet poster
 
Posts: 4
Default Importing .msg files into a .pst file

A bunch of people at our company have been saving their emails to the
network drives by draging them from outlook 2003 to the file system. The
problem is that when you do this you loose the intelligence of the messages
when it comes to finding one email among thousands. What I have been tasked
to do is reverse this by creating a .pst file for each of our projects(which
I have already done there are 1500 of them by the way) and importing the
..msg files into the .pst file they belong to. The only way I can do this by
manually draging the files from the network drive into the folder in
Outlook. I can't seem to find a way to use vba to do this in an automated
manner.

So the goal is:

Search each folder in g:\projects for *.msg files.
When a folder contains *.msg files, Open the FOLDERNAME.pst file in outlook
ie. c:\projects\12345_01.pst and copy the .msg files into the newly opened
..pst file.

Any suggestions?

Thanks

Steve



Ads
  #2  
Old September 4th 06, 06:42 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Importing .msg files into a .pst file

Am Fri, 1 Sep 2006 17:14:14 -0600 schrieb Stever:

For searching the files you could use the FileSystemObject of the Microsoft
Scripting Runtime.

CreateItemFromTemplate you can import a *.msg file but then you loose all
sender related properties. Instead I'd use GetMessageFromMsgFile with
Redemption (www.dimastr.com).

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


A bunch of people at our company have been saving their emails to the
network drives by draging them from outlook 2003 to the file system. The
problem is that when you do this you loose the intelligence of the

messages
when it comes to finding one email among thousands. What I have been

tasked
to do is reverse this by creating a .pst file for each of our

projects(which
I have already done there are 1500 of them by the way) and importing the
.msg files into the .pst file they belong to. The only way I can do this

by
manually draging the files from the network drive into the folder in
Outlook. I can't seem to find a way to use vba to do this in an automated
manner.

So the goal is:

Search each folder in g:\projects for *.msg files.
When a folder contains *.msg files, Open the FOLDERNAME.pst file in

outlook
ie. c:\projects\12345_01.pst and copy the .msg files into the newly opened
.pst file.

Any suggestions?

Thanks

Steve

  #3  
Old September 4th 06, 11:05 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Importing .msg files into a .pst file

Or use Safe*Item/RDOMail.Import(..., olMSG) in Redemption to import an MSG
file into an existing (or a newly created) message residing in any store.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Michael Bauer [MVP - Outlook]" wrote in message
...
Am Fri, 1 Sep 2006 17:14:14 -0600 schrieb Stever:

For searching the files you could use the FileSystemObject of the
Microsoft
Scripting Runtime.

CreateItemFromTemplate you can import a *.msg file but then you loose all
sender related properties. Instead I'd use GetMessageFromMsgFile with
Redemption (www.dimastr.com).

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


A bunch of people at our company have been saving their emails to the
network drives by draging them from outlook 2003 to the file system. The
problem is that when you do this you loose the intelligence of the

messages
when it comes to finding one email among thousands. What I have been

tasked
to do is reverse this by creating a .pst file for each of our

projects(which
I have already done there are 1500 of them by the way) and importing the
.msg files into the .pst file they belong to. The only way I can do this

by
manually draging the files from the network drive into the folder in
Outlook. I can't seem to find a way to use vba to do this in an automated
manner.

So the goal is:

Search each folder in g:\projects for *.msg files.
When a folder contains *.msg files, Open the FOLDERNAME.pst file in

outlook
ie. c:\projects\12345_01.pst and copy the .msg files into the newly
opened
.pst file.

Any suggestions?

Thanks

Steve



 




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
Exporting/Importing PST files - error - too large file with free s Rustam Outlook - General Queries 2 August 26th 06 07:09 PM
trouble importing archived pst files Bradley in VT Outlook - Using Contacts 8 June 21st 06 12:20 AM
trouble importing archived pst files Bradley in VT Outlook - Using Contacts 4 June 20th 06 09:57 PM
Importing PST files cmar Outlook - Installation 2 April 6th 06 10:06 PM
Importing .pst files to OE6 Eric Harden Outlook Express 5 January 8th 06 09:37 PM


All times are GMT +1. The time now is 08:36 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.