OL98: How to Programmatically Hide Pages of an Outlook FormID: Q202281
|
When creating custom Outlook forms, you may want to hide or display pages based on certain conditions. This can be done by using the HideFormPage and ShowFormPage methods of the Inspector object.
Microsoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to
provide added functionality or construct procedures to meet your specific
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/The following Microsoft Visual Basic code sample demonstrates this functionality.
Dim objOutApp As Outlook.application
Dim Mail As AppointmentItem
Set objOutApp = CreateObject("Outlook.application")
Set Mail = objOutApp.CreateItem(olAppointmentItem)
Mail.Display
objOutApp.ActiveInspector.HideFormPage ("Appointment")
objOutApp.ActiveInspector.ShowFormPage ("Appointment")
Additional query words:
Keywords : kbdta OffVBS kbAutomation kbMsg kbOutlook97 kbOutlook98 kbOutlookObj
Version : WINDOWS:
Platform : WINDOWS
Issue type :
Last Reviewed: April 15, 1999