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.


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" 
End Sub

See also

Inspector Object

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.