PC Review


Reply
Thread Tools Rate Thread

VBScript Create & Name a .pst

 
 
sultanoswat@yahoo.com
Guest
Posts: n/a
 
      18th Sep 2006
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?

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      18th Sep 2006
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

<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set a reference to Microsoft VBScript Regular Expressions(vbscript.dll) cate Microsoft Excel Programming 3 1st Dec 2009 04:07 PM
Unable to call a vbscript within a vbscript Karuna Microsoft Access VBA Modules 1 6th Oct 2008 02:12 PM
how do I reveerse name order last name, first name to first name, last name Don Smith Microsoft Excel Discussion 9 29th Nov 2006 10:55 PM
Changing a list from last name, first name to first name, last name zgall1 Microsoft Excel Misc 3 17th Feb 2006 12:49 AM
create vbscript to create rule Noone Important Microsoft Outlook VBA Programming 1 8th Mar 2004 07:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.