Export (0) Print
Expand All

Inspector.HideFormPage Method (Outlook)

Hides a form page or a form region in the inspector.

expression .HideFormPage(PageName)

expression A variable that represents an Inspector object.

Parameters

Name

Required/Optional

Data Type

Description

PageName

Required

String

The display name of the form page, or the internal name of a form region to be hidden.

You can use HideFormRegion to hide a form region by specifying the InternalName property of the form region, if the form region is an adjoining or separate form region. Only the add-in that implements the form region can hide the form region.

This Visual Basic for Applications (VBA) example uses HideFormPage to hide the "General" page of a newly-created ContactItem and displays the item.

Sub HidePage() 
 
 Dim MyItem As Outlook.ContactItem 
 
 Dim myPages As Outlook.Pages 
 
 Dim myinspector As Outlook.Inspector 
 
 
 
 Set MyItem = Application.CreateItem(olContactItem) 
 
 Set myPages = MyItem.GetInspector.ModifiedFormPages 
 
 myPages.Add "General" 
 
 Set myinspector = Application.ActiveInspector 
 
 myinspector.HideFormPage "General" 
 
 MyItem.Display 
 
End Sub
Show:
© 2015 Microsoft