View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Run a procedure when exiting a a textbox within a userform

You can use the Exit event of the textbox:

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
' your code here
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"borg" wrote in message
...
Hi,

I have a userform with a bunch of textboxes. Once someone
types something
into userform1.textbox1 and press the tab or select another
textbox, I would
like to run the code from a procedure. I know it is not
textbox1_onclick
but is there something similar to this?

Thanks!