Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel vba - enter to run a marco

Status
Not open for further replies.

brian032

Instructor
Feb 8, 2019
1
PH
Hi, am fairly new with excel vba and forms. here's my concern:

I have a form (planning to create a DOS based like emulator) where i am using a textbox and planning to use the enter key from the keyboard to hide the said textbox and label then show a new textbox that i can use to type in and run another macro. How can i possibly do that?
 
Welcome to Tek-Tips.

Let me see if I understand.
[ul]
[li]You have some macros (VBA subs) in Excel[/li]
[li]You have created a vba form with more than one text box[/li]
[li]When a user simply presses the enter key in one text box, you want the text box and its label to hide and the focus to move to a new formerly hidden text box[/li]
[li]You will type something into the second text box that will run a macro[/li]
[/ul]

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top