Inspector.ModifiedFormPages Property (Outlook)

Returns the Pages collection that represents all the pages for the item in the inspector. Read-only.

expression .ModifiedFormPages

expression A variable that represents an Inspector object.

The main page and up to five customizable pages can be obtained using the Add method.

This Visual Basic for Applications (VBA) displays the count of pages in the ModifiedFormPages collection. To run this example without any errors, display a contact item in the active window.

Sub CountModifiedFormPages() 
 
 Dim myItem As Outlook.ContactItem 
 
 Dim myPages As Outlook.Pages 
 
 
 
 Set myItem = Application.ActiveInspector.CurrentItem 
 
 Set myPages = myItem.GetInspector.ModifiedFormPages 
 
 MsgBox myPages.Count 
 
End Sub
Show:
© 2014 Microsoft