Occurs whenever the Options dialog box (available through the Tools menu) or a folder Properties dialog box is opened. This event is not available in VBScript.
Syntax 1
Sub object_OptionsPagesAdd(Pages as PropertyPages)
Syntax 2
Sub object_OptionsPagesAdd(Pages as PropertyPages, Folder as MAPIFolder)
object An expression that evaluates to an Application or a NameSpace object.
Pages Required. The collection of property pages that have been added to the dialog box. This collection includes only custom property pages. It does not include standard Microsoft Outlook property pages.
Folder Required. The MAPIFolder object for which the Properties dialog box is being opened.
Remarks
Your program handles this event to add a custom property page. If object is an Application object, then Syntax 1 applies and the property page will be added to the Options dialog box. If object is a NameSpace object, then Syntax 2 applies and the property page will be added to Properties dialog box of the specified folder. When the event fires, the PropertyPages collection object identified by Pages contains the property pages that have been added prior to the event hander being called. To add your property page to the collection, use the Add method of the PropertyPages collection before exiting the event handler.