HideFormPage Method
Hides a form page in the inspector.
expression.HideFormPage(PageName)
expression Required. An expression that returns an Inspector object.
PageName Required String. The display name of the page to be hidden.
Example
This Visual Basic for Applications example uses HideFormPage to hide the "General" page of a newly-created ContactItem and then displays the item.
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olContactItem)
Set myPages = myItem.GetInspector.ModifiedFormPages
Set myPage = myPages.Add("General")
Set myInspector = myOlApp.ActiveInspector
myInspector.HideFormPage("General")
myItem.Display
If you use VBScript, you do not create the Application object, and you cannot use named constants. This example shows how to perform the same task using VBScript.
Set myItem = Application.CreateItem(2)
Set myPages = myItem.GetInspector.ModifiedFormPages
Set myPage = myPages.Add("General")
Set myInspector = Application.ActiveInspector
myInspector.HideFormPage("General")
myItem.Display