LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default userform question

have 2 fields on a user form. when textbox1 is exited, it looks up the value
and stores it in a variable. if i don't find it, i pop a message box but i'm
having a problem setting the focus back to textbox1. it always goes to
textbox2 even thought i set focus back to textbox1.

what's the best way to only go to textbox 2 if it finds the value entered
into textbox1, otherwise clear textbox1 and set the focus.

unloading and loading the form works, but just looking for a better way.
--

Gary Keramidas
Excel 2003


 
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
Another Userform question. ingleg Excel Discussion (Misc queries) 1 July 6th 06 01:17 PM
userform question Gary Keramidas Excel Programming 1 January 31st 06 08:06 AM
UserForm Question bforster1[_25_] Excel Programming 1 November 6th 04 01:21 PM
Userform Question Steph[_3_] Excel Programming 1 August 4th 04 06:47 PM
Userform question Oreg[_8_] Excel Programming 1 May 27th 04 02:46 AM


All times are GMT +1. The time now is 06:27 AM.

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

About Us

"It's about Microsoft Excel"