Showing and Hiding Modified Form Pages

Showing and Hiding Modified Form Pages

Post by V2FycmV » Sat, 07 Aug 2004 10:57:05


Hi,

I'm using Outlook 2002 and have designed a custom form with a couple of tabs.

I'm trying to either display or hide a particular tab in a custom form
depending on whether a check box is enabled.

What is the outlook property for showing and hiding the tab?

Here's my code:

Function Item_Open()
Dim PrimaryContact

Set MarketingPages = Item.GetInspector.ModifiedFormPages("Marketing")
PrimaryContact = Item.UserProperties("Primary Contact")
If PrimaryContact = True Then
MarketingPages.Visible = True 'not working here
Else
MarketingPages.Visible = False
End If
End Function
 
 
 

Showing and Hiding Modified Form Pages

Post by Sue Mosher » Sat, 07 Aug 2004 11:15:35

Take a look at the Inspector.ShowFormPage and .HideFormPage methods.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.yqcomputer.com/




tabs.