Folder of msg files import into pst

I have about 48,000 msg files in a folder, which Id like to import into a PST file.

I can currently drag a few hundred over into the folder and they import, but if I import more than about 200 Outlook tells me it cant import the files.

I have looked around for programs that can merge msg files into a pst file, but they are quite expensive.

Is it possible to import 1 msg into a folder in the pst file which I can code in VBA, so after using item.saveas("c:\msg1.msg"), I can load the item into a folder "\\Archive 2008\Inbox", so something like:-
               dim item as new mailitem
               item = loadfile("c:\msg1.msg")
               item.folder = "\\Archive 2008\Inbox"
               item.save

I know the above code wont work, but have no idea how to load a msg file up and then save it to a specific folder.

Any help would be appriciated.

Thank you in advance
tonelm54Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David LeeCommented:
Hi, tonelm54.

Unfortunately Outlook's object model doesn't include the ability to import a .msg file.  Doing that requires the use of a third-party library like Outlook Redemption (http://www.dimastr.com).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tonelm54Author Commented:
Good afternoon,
Can you have a look at 'http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/Q_25992222.html' as I have an issue with setting the folder of the imported object.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.