Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Run a procedure when exiting a a textbox within a userform

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Run a procedure when exiting a a textbox within a userform

Thank you so much!!!




"Chip Pearson" wrote:

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!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about exiting a procedure Gary Keramidas Excel Programming 5 March 5th 06 08:21 AM
Exiting a procedure with a userform jumpjump[_4_] Excel Programming 2 August 30th 05 09:04 AM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Userform maintaining items in list box after exiting Excel Ligaya Excel Programming 2 December 2nd 04 03:25 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"