This Microsoft Visual Basic/Visual Basic for Applications example sets two global variables to reflect the values in controls on a form and then sets a global variable representing the Dirty property to False.
Private Sub PropertyPage_Apply()
globWorkGroup = Form1.Text1.Text
globUserType = Form1.Combo1.Text
globDirty = False
End Sub