A
andymarbles
Hi,
How do I get this script to run as a VBS file. Basically, I need to
change the properties of the "Contacts" so that it is displayed as an
Outlook address book.
Thanks!
Sub ShowAsAddressBookChange()
Dim olApp As Outlook.Application
Dim nmsName As Outlook.Namespace
Dim fldFolder As Outlook.MAPIFolder
Set olApp = Outlook.Application
'Create instance of namespace
Set nmsName = olApp.GetNamespace("MAPI")
Set fldFolder = nmsName.GetDefaultFolder(olFolderContacts)
'Display the folder as Outlook Address Book
fldFolder.ShowAsOutlookAB = True
End Sub
How do I get this script to run as a VBS file. Basically, I need to
change the properties of the "Contacts" so that it is displayed as an
Outlook address book.
Thanks!
Sub ShowAsAddressBookChange()
Dim olApp As Outlook.Application
Dim nmsName As Outlook.Namespace
Dim fldFolder As Outlook.MAPIFolder
Set olApp = Outlook.Application
'Create instance of namespace
Set nmsName = olApp.GetNamespace("MAPI")
Set fldFolder = nmsName.GetDefaultFolder(olFolderContacts)
'Display the folder as Outlook Address Book
fldFolder.ShowAsOutlookAB = True
End Sub