Add Method (PropertyPages Collection) Example
This Microsoft Visual Basic/Visual Basic for Applications example adds a new property page named Project Settings to the Microsoft Outlook Options dialog box. The sample code must be placed in a class module, and the Initialize_handler routine must be called before the event procedure can be called by Outlook.
Dim WithEvents myOlApp As Outlook.Application
Dim myPropertyPage As Outlook.PropertyPage
Sub Initialize_handler()
Set myOlApp = CreateObject("Outlook.application")
End Sub
Private Sub myOlApp_OptionsPagesAdd(ByVal Pages As Outlook.PropertyPages)
Set myPropertyPage = ProjPage
Pages.Add "myPropertyPage.Page1", "Project Settings"
End Sub