Muokkaa

Jaa


Inspector.HideFormPage method (Outlook)

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

Syntax

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.

Remarks

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.

Example

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

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.