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

See also

Inspector Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.