Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default User Form Initialization

I have created a user form to input several pieces of
information with an "OK" button to process the data into
the correct fields. This user form is in a loop and
stops once all the information has been entered.

Right now, once the "OK" button is pressed, the OK button
is still selected and the user has to press either ENTER
or TAB to get to the first textbox. Is there a way to
position the cursor into the first textbox?

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default User Form Initialization

In the UserForm_Activate or Initialize event, use:

TextBox1.SetFocus
(or whatever the name of your textbox is).

--
Dianne

In ,
Josh typed:
I have created a user form to input several pieces of
information with an "OK" button to process the data into
the correct fields. This user form is in a loop and
stops once all the information has been entered.

Right now, once the "OK" button is pressed, the OK button
is still selected and the user has to press either ENTER
or TAB to get to the first textbox. Is there a way to
position the cursor into the first textbox?

Thanks for your help.



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
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
How to control worksheet initialization upon opening a workbook Nick Excel Worksheet Functions 3 October 31st 04 04:36 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM
List box initialization Tom Ogilvy Excel Programming 0 July 15th 03 05:41 PM
List box initialization Daniel Thompson Excel Programming 0 July 15th 03 05:17 PM


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