Creating a *.pst file via code 
Author Message
 Creating a *.pst file via code

Is there a way to programically open & close a *.pst file?
I'm developing functionality that will allow Access to
create & remove Outlook folders in various *.pst files. I
need the ability to open a *.pst file if the *.pst file is
not currently open. (I posted this in the Office Developer newsgroup but
didn't get any bytes - thought that yall might have some ideas.)


Wed, 18 May 2005 04:33:41 GMT  
 Creating a *.pst file via code
You can use this method to access a pst folder which is not currently open.

Regards
Natarajan

Dim myOlApp As New Outlook.Application
Dim myNS As Outlook.NameSpace
Set myNS = myOlApp.GetNamespace("MAPI")
myNS.AddStore "c:\mypst.pst"



Quote:
> Is there a way to programically open & close a *.pst file?
> I'm developing functionality that will allow Access to
> create & remove Outlook folders in various *.pst files. I
> need the ability to open a *.pst file if the *.pst file is
> not currently open. (I posted this in the Office Developer newsgroup but
> didn't get any bytes - thought that yall might have some ideas.)



Wed, 18 May 2005 20:33:18 GMT  
 Creating a *.pst file via code
Thank that solves a part of the problem. However, what if the *.pst file
doesn't exist? Is there a way to CREATE a new *.pst file via code.
Quote:

> You can use this method to access a pst folder which is not currently open.

> Regards
> Natarajan

> Dim myOlApp As New Outlook.Application
> Dim myNS As Outlook.NameSpace
> Set myNS = myOlApp.GetNamespace("MAPI")
> myNS.AddStore "c:\mypst.pst"



>>Is there a way to programically open & close a *.pst file?
>>I'm developing functionality that will allow Access to
>>create & remove Outlook folders in various *.pst files. I
>>need the ability to open a *.pst file if the *.pst file is
>>not currently open. (I posted this in the Office Developer newsgroup but
>>didn't get any bytes - thought that yall might have some ideas.)



Fri, 20 May 2005 02:03:11 GMT  
 Creating a *.pst file via code
Using the objects below...
myOlApp.Session.AddStore("c:\FooBar.pst")

Jeff

Quote:
>-----Original Message-----
>Thank that solves a part of the problem. However, what if
the *.pst file
>doesn't exist? Is there a way to CREATE a new *.pst file
via code.


>> You can use this method to access a pst folder which is
not currently open.

>> Regards
>> Natarajan

>> Dim myOlApp As New Outlook.Application
>> Dim myNS As Outlook.NameSpace
>> Set myNS = myOlApp.GetNamespace("MAPI")
>> myNS.AddStore "c:\mypst.pst"


message

>>>Is there a way to programically open & close a *.pst
file?
>>>I'm developing functionality that will allow Access to
>>>create & remove Outlook folders in various *.pst files.
I
>>>need the ability to open a *.pst file if the *.pst file
is
>>>not currently open. (I posted this in the Office

Developer newsgroup but

- Show quoted text -

Quote:
>>>didn't get any bytes - thought that yall might have
some ideas.)

>.



Sat, 21 May 2005 09:06:25 GMT  
 Creating a *.pst file via code
So AddStore creates the *.pst file as well as open it if it is not
already open? (Sorry, its 1:00Am in the morning and too tired to try it
out tonight.)
Quote:

> Using the objects below...
> myOlApp.Session.AddStore("c:\FooBar.pst")

> Jeff

>>-----Original Message-----
>>Thank that solves a part of the problem. However, what if

> the *.pst file

>>doesn't exist? Is there a way to CREATE a new *.pst file

> via code.


>>>You can use this method to access a pst folder which is

> not currently open.

>>>Regards
>>>Natarajan

>>>Dim myOlApp As New Outlook.Application
>>>Dim myNS As Outlook.NameSpace
>>>Set myNS = myOlApp.GetNamespace("MAPI")
>>>myNS.AddStore "c:\mypst.pst"


> message


>>>>Is there a way to programically open & close a *.pst

> file?

>>>>I'm developing functionality that will allow Access to
>>>>create & remove Outlook folders in various *.pst files.

> I

>>>>need the ability to open a *.pst file if the *.pst file

> is

>>>>not currently open. (I posted this in the Office

> Developer newsgroup but

>>>>didn't get any bytes - thought that yall might have

> some ideas.)

>>.



Sun, 22 May 2005 14:03:23 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Opening a *.pst file via code

2. Exporting everything to pst file via code

3. Exporting/Importing pst files via VBA

4. Updating a PST file via network login and auto-importing into Outlook 2000

5. Can I Create an MDE file via code?

6. removing code from a document created via code and save as

7. How to create .PST file

8. Creating *.pst file for all included mailboxes

9. Code for opening .pst file

10. VBA code to import .pst file into Outlook

11. Outlook PST file through code?

12. Opening .PST via VB6 & ADO

 

 
Powered by phpBB® Forum Software