Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax for Creating a Personal Folder in outlook

Status
Not open for further replies.

w33mhz

MIS
May 22, 2007
529
US
I get a lot of requests from users to create a personal folder in their outlook, and I was just going to give them a script to run that would create it and add it in their outlook for them.
 
Well I figured it out. Here ya go if anyone needs to use it.

Code:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
myNameSpace.AddStoreEx "c:\" & myNameSpace.CurrentUser & ".pst", 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top