This documentation is archived and is not being maintained.

Inspector.ModifiedFormPages Property

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



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.

Visual Basic for Applications
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