Folder.ShowAsOutlookAB Property (Outlook)

Returns or sets a Boolean variable that specifies whether the contact items folder will be displayed as an address list in the Outlook Address Book. Read/write.

Version Information

Version Added: Outlook 2007

Syntax

expression .ShowAsOutlookAB

expression A variable that represents a Folder object.

Remarks

If you set the ShowAsOutlookAB property of a contact items folder to False, it will not be available in the drop-down list under Address Book in the Address Book dialog box.

ShowAsOutlookAB does not support folders on another Exchange user's mailbox, for example, a Contacts folder that is shared by another user. Getting or setting this property on a such a folder will not produce any desired results.

Example

The following Visual Basic for Applications (VBA) example creates a reference to the default Contacts folder and modifies its ShowAsOutlookAB property to be displayed as an Address Book.

Sub ShowAsAddressBookChange() 
 
 Dim nmsName As Outlook.Namespace 
 
 Dim fldFolder As Outlook.Folder 
 
 
 
 'Create instance of namespace 
 
 Set nmsName = Application.GetNamespace("Mapi") 
 
 Set fldFolder = nmsName.GetDefaultFolder(olFolderContacts) 
 
 'Display the folder as Outlook Address Book 
 
 fldFolder.ShowAsOutlookAB = True 
 
End Sub

See Also

Concepts

Folder Object

Folder Object Members