NameSpace.OptionsPagesAdd event (Outlook)
Occurs whenever the Properties dialog box for a folder is opened.
Syntax
expression. OptionsPagesAdd
( _Pages_
, _Folder_
)
expression A variable that represents a NameSpace object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Pages | Required | PropertyPages | 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 | Folder | This argument is only used with the Folder object. The Folder object for which the Properties dialog box is being opened. |
Remarks
This event is not available in Microsoft Visual Basic Scripting Edition (VBScript).
You can open the Properties dialog box for a folder by right-clicking the folder and selecting Properties.
Your program handles this event to add a custom property page. 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 handler being called. To add your property page to the collection, use the Add method of the PropertyPages collection before exiting the event handler.
See also
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.