View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\)[_1343_] Rick Rothstein \(MVP - VB\)[_1343_] is offline
external usenet poster
 
Posts: 1
Default updating userform

The ActiveControl object will always reference the control that is currently
active. Since your Sub is being called from a control's event procedure,
then that control must currently be active, so ActiveControl will be
referencing it.

Rick


"steve" wrote in message
...
2 part question:

a. What events should I be using to update between my userform and
worksheet? Is it ever good practice to use the ControlSource property for
say a textbox?

b. How can I validate multiple textbox's with the same code? For
example:
Private Sub TextBox1_Change()
Call Update
End Sub

Private Sub TextBox2_Change()
Call Update
End Sub

In Sub Update(), how do I reference which text box changed?

thanks,
Steve