View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ryan H Ryan H is offline
external usenet poster
 
Posts: 489
Default Set Boolean Variable for Changing Any Control on Userform

I want to notify the user if they make any changes to the userform when they
click the OK button on the userform. The userform has about 90 controls on
it. Do I have to set the variable bolFormChanged = True under a Change Event
for each control or is there a shortcut to doing this?

Thanks in Advance!

For Example,

Private Sub btnOK_Click()

If bolFormChanged = True Then
' notify user with msgbox
Else
' Do This
End If

End Sub
--
Cheers,
Ryan