![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Stan
Posts: 11
|
I would like to press enter within a text box and have code execute. The textbox is inserted into Sheet1. Not on a user form.
Currently, I enter the text in a textbox and pressing enter does nothing. I placed a button next to the textbox and click it to execute the code. I think this should be simple, but I can't figure it out... Thanks, Stan. [ This Message was edited by: Tanner on 2002-05-10 08:47 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Is your textbox on a userform or a worksheet?
Tom |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
Hi Tanner,
Assuming it is on an userform. Why don't you use keydown event. Here is sample for you. |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Location: Stan
Posts: 11
|
Thanks for the Solution, Colo. Your solution worked even though the textbox is embedded into sheet 1 and not on a user form.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|