Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default setting tab order by code

I have a form that has 4 text boxes and two buttons. When an invalid
entry is found I want the focus to be set to the originating text box.
Now when you press enter and the invalid entry is discovered the focus
is set to the next tab box even when I set the focus back to the
original text box. Any ideas?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default setting tab order by code

Use the Exit event to do the validation, then set cancel = True to stay in
the text box if you decide the entry is invalid.

--
Regards,
Tom Ogilvy

dlrauh wrote in message
...
I have a form that has 4 text boxes and two buttons. When an invalid
entry is found I want the focus to be set to the originating text box.
Now when you press enter and the invalid entry is discovered the focus
is set to the next tab box even when I set the focus back to the
original text box. Any ideas?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Setting reverse order for axis in OWC 11 chart component joeg Charts and Charting in Excel 4 April 9th 09 12:09 PM
Setting Tab order Rita Excel Discussion (Misc queries) 8 April 7th 09 09:13 PM
Setting the Tab Order [email protected] Excel Discussion (Misc queries) 3 October 22nd 08 10:59 PM
Setting custom Tab order Rusty Setting up and Configuration of Excel 2 May 17th 07 06:43 PM
setting order in excel M Kirwin Excel Discussion (Misc queries) 2 October 31st 06 08:58 AM


All times are GMT +1. The time now is 01:32 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"