My concern is that the archives have to be setup through code.
When I run the code I posted it creates the archive pst files correctly, but it calls them all 'Personal Folders'. Without being able to specify the name when I create the archive, or at least uniquely identify the newly created archive folder I could end up renaming the wrong folder.
What if the user already has 2 or 3 'Personal Folders' in their Outlook. How would a knwo which one to rename.
Main Topics
Browse All Topics





by: routinetPosted on 2005-02-10 at 10:41:23ID: 13278455
I manually created a PST file ("C:\MyStuff.pst") with the name "blahblah". This code changed it:
") lah").Name = "SetName"
Public Sub CheckFolders()
Dim myOlApp
Dim myNameSpace
Set myOlApp = GetObject(, "Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI
myNameSpace.Folders("blahb
End Sub