ModifiedFormPages Property

Microsoft Outlook Visual Basic

Show All

ModifiedFormPages Property

       

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 example returns a new custom page named "My Page" (the same call without a name will return the next available page for customization — for example, "Custom1").

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olContactItem)
Set myPages = myItem.GetInspector.ModifiedFormPages
Set myPage = myPages.Add("My Page")