Edit

Share via


Pages object (Outlook)

Contains pages that represent the pages of an Inspector window.

Remarks

Every Inspector object has a Pages object defined, which is empty (count 0) if the Outlook item has never been customized before.

Use the ModifiedFormPages property to return the Pages object from an Inspector object.

Use the Add method to create a custom page (you can add as many as 5 customizable pages). Use the Name argument of the Add method to set the display name of the returned page. In addition to adding custom pages, you can use the Name argument to return the main page of an Inspector object for modification.

Use ModifiedFormPages (index), where index is the name or index number, to return a single page from a Pages object.

Example

The following example returns the Pages object for the active Inspector.

Set myPages = myItem.GetInspector.ModifiedFormPages

The following example returns a custom page with a default name (such as "Custom1").

Set myPage = myPages.Add

The following example returns a custom page named "My Page."

Set myPage = myPages.Add("My Page")

The following example returns the Message page if the Inspector contains a mail message.

Set myPage = myPages.Add("Message")

The following example returns the General (main) page if the inspector contains a contact.

Set myPage = myPages.Add("General")

Methods

Name
Add
Item
Remove

Properties

See also

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.