ModifiedFormPages Property

Microsoft Outlook Visual Basic

Returns the Pages collection that represents all the pages for the item in the inspector. The main page and up to five customizable pages can be obtained using the Add method.

expression.ModifiedFormPages

expression    Required. An expression that returns an Inspector object.

Example

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 myOlApp As New Outlook.Application
	Dim myItem As Outlook.ContactItem
	Dim myPages As Outlook.Pages
	Set myOlApp = CreateObject("Outlook.Application")
	Set myItem = myOlApp.ActiveInspector.CurrentItem
	Set myPages = myItem.GetInspector.ModifiedFormPages
	MsgBox myPages.Count
End Sub