Class PropertyPageSite (Outlook VBA)
The class PropertyPageSite represents the container of a custom property page. To use a PropertyPageSite class variable it first needs to be instantiated, for example
Class
Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for
Dim pps As PropertyPageSite: Set pps =
Dim oocsClass As OlObjectClass
oocsClass = pps.Class
OnStatusChange
Notifies Microsoft Outlook that a custom property page has changed.
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
myPPSite.OnStatusChange
End If
Else
If TypeName(myPPSite) = "Nothing" Then
MsgBox "The Property Page returned an empty result."
End If
End If
End Sub
Session
Returns the NameSpace object for the current session.
The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements do the same function: