Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Cursor not to move when pressing the enter key

Hi

I am making a form and I want the user to input a number in a cell (e.g.
A2) and press enter, but I don't want the cursor move into the next cell.
All I want is the cursor to stay in A2. Any suggestion or help will be
appreciated. Thank you.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Cursor not to move when pressing the enter key

Alex,

Go to Tools, Options, Edit and uncheck the box for "Move Selection After
Enter"

Alok Joshi

"Alex Martinez" wrote:

Hi

I am making a form and I want the user to input a number in a cell (e.g.
A2) and press enter, but I don't want the cursor move into the next cell.
All I want is the cursor to stay in A2. Any suggestion or help will be
appreciated. Thank you.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Cursor not to move when pressing the enter key

In a userform if I want to control entry and advancement based on entry I
hide or expose labels and textboxs as needed.
Private Sub UserForm_Activate()
Label14.Visible = False
TextBox14.Visible = False
then if something I want is entered into textbox1 then I expose the next
operation
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If Val(TextBox1) 1 Then
Label14.Visible = True
TextBox14.Visible = True
end if
If enter is pressed the focus will not advance to a hidden object.

"Alex Martinez" wrote:

Hi

I am making a form and I want the user to input a number in a cell (e.g.
A2) and press enter, but I don't want the cursor move into the next cell.
All I want is the cursor to stay in A2. Any suggestion or help will be
appreciated. Thank you.




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
move cursor after inputting data without using enter key [email protected] New Users to Excel 2 June 13th 07 02:25 PM
HOW CAN I GET MY CURSOR TO MOVE TO NEXT CELL BY PRESSING TAB Melissa Jordan Excel Discussion (Misc queries) 3 November 27th 06 11:55 PM
Customize cursor movement when pressing enter User of the Word Excel Discussion (Misc queries) 3 May 8th 06 03:00 AM
want to move cursor horizontal while pressing enterkey Nilesh Excel Discussion (Misc queries) 1 December 23rd 05 08:02 AM
Cursor not to move when hitting the enter key Alex Martinez Excel Worksheet Functions 1 May 12th 05 05:40 AM


All times are GMT +1. The time now is 10:20 PM.

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"