OnStatusChange Method
Collapse the table of content
Expand the table of content

PropertyPageSite.OnStatusChange Method (Outlook)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Notifies Microsoft Outlook that a custom property page has changed.

expression .OnStatusChange

expression A variable that represents a PropertyPageSite object.

This Microsoft Visual Basic for Applications (VBA) example shows how to call the OnStatusChange method to notify Outlook that the user has changed a value on a custom property page.

Private Sub Option1_Click() 
 Dim myPPSite As Outlook.PropertyPageSite 
 Set myPPSite = Parent 
 If Not TypeName(myPPSite) = "Nothing" Then 
 globNewUserType = globAdministrator 
 If globUserType <> globNewUserType Then 
 globDirty = True 
 End If 
 If TypeName(myPPSite) = "Nothing" Then 
 MsgBox "The Property Page returned an empty result." 
 End If 
 End If 
End Sub 

© 2016 Microsoft