I am new to trying to script with Outlook, but what I am doing is
trying to add a specific folder to the Public Folders FAVORITES. Below
is my code. When I run it, Outlook locks up...I close Outlook and I
get the error "Remote Procedure Call Failed". Any ideas?
AddToFavorites
Sub AddToFavorites()
'Adds a Public Folder to the list of favorites
Dim olapp
Dim objFolder, newfolder
set olapp = CreateObject("Outlook.Application")
set objFolder = olapp.GetNameSpace("MAPI")
Set objFolder1 = objFolder.Folders("Public Folders").Folders("All
Public Folders").Folders("Office Locations")
Set newfolder = objFolder1.AddToPFFavorites
End Sub