View Single Post
  #2  
Old September 18th 06, 07:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default VBScript Create & Name a .pst

See http://www.outlookcode.com/codedetail.aspx?id=962 for a code sample.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message oups.com...
It's easy to create a pst using this code:

Dim objOutlook, objNameSpace

Set objOutlook = CreateObject("Outlook.Application")
Set objNameSpace = objOutlook.GetNamespace("MAPI")
objNameSpace.AddStore pstfileName
Set objNameSpace = Nothing
Set objOutlook = Nothing

How I can set it's display name instead of it choosing the default
("Personal Folders") when creating it?

Ads