Inspector.ShowFormPage Method

Outlook Developer Reference

Shows a form page in the inspector.

Syntax

expression.ShowFormPage(PageName)

expression   A variable that represents an Inspector object.

Parameters

Name Required/Optional Data Type Description
PageName Required String The display name of the page to be shown.

Example

This Visual Basic for Applications (VBA) example uses the ShowFormPage method to show the All Fields page of the currently open item. If there is no currently open item, a message box will inform the user.

Visual Basic for Applications
  Sub ShowAllFieldsPage()
    Dim myInspector As Outlook.Inspector
    Dim myItem As Object
Set myInspector = Application.ActiveInspector
On Error GoTo ErrorHandler
myInspector.<strong class="bterm">ShowFormPage</strong> ("All Fields")
Set myItem = myInspector.CurrentItem
myItem.Display
Exit Sub

ErrorHandler: MsgBox "No current item to display." End Sub

See Also