Can Excel be made to auto-advance to the next cell?

dneunabe

New Member
Joined
Feb 23, 2004
Messages
12
Good evening,

Is there a way to make excel advance to next lowest cell automatically once a number of a specifed length (e.g. single digit integers in my case) is entered in a cell? I have large volumes of data to enter--usually integers from 0 to 9--and the extra "enter" keystroke becomes very tedious and increases errors.
Thanks much!
Dan
 
Hi!
here'a code that will do that.
First dragdown a textbox control from the control toolbox.
then press Alt+F11.
In VBE insert the code below.
Then type any single character in the textbox. it will be entered in the first blank cell in Column A.

Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
****Range("A65536").End(xlUp).Offset(1, 0).Value = Chr(KeyAscii)
****TextBox1.Value = ""
End Sub

No need to press enter.
Just enter numbers as fast as you can.
Tell me if you can beat excel. ie xcel misses few or one of you inputs. (Just Kidding) :lol: :lol: :lol:
Edit:
Forgot one thing! Exit design mode before you type anything on the
textbox.


Hi,

I tried your formula and it WORKED - EXCELLENT!. I only have one question. How do I make it to accept 12 characters instead of only 1?

Thank you.
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I like your code. It really worked. I just need help on modifying this code to accept 12 digit before it jumps to next cell. Please help
 
Upvote 0
Hi!
here'a code that will do that.
First dragdown a textbox control from the control toolbox.
then press Alt+F11.
In VBE insert the code below.
Then type any single character in the textbox. it will be entered in the first blank cell in Column A.

Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
****Range("A65536").End(xlUp).Offset(1, 0).Value = Chr(KeyAscii)
****TextBox1.Value = ""
End Sub


No need to press enter.
Just enter numbers as fast as you can.
Tell me if you can beat excel. ie xcel misses few or one of you inputs. (Just Kidding) :lol: :lol: :lol:
Edit:
Forgot one thing! Exit design mode before you type anything on the
textbox.




Hi

How do I modify this code to accept 12 digit before it jumps to next cell. by the way this code really worked and it is fast. Thank you.
 
Upvote 0
Hi!
here'a code that will do that.
First dragdown a textbox control from the control toolbox.
then press Alt+F11.
In VBE insert the code below.
Then type any single character in the textbox. it will be entered in the first blank cell in Column A.

Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
****Range("A65536").End(xlUp).Offset(1, 0).Value = Chr(KeyAscii)
****TextBox1.Value = ""
End Sub


No need to press enter.
Just enter numbers as fast as you can.
Tell me if you can beat excel. ie xcel misses few or one of you inputs. (Just Kidding) :lol: :lol: :lol:
Edit:
Forgot one thing! Exit design mode before you type anything on the
textbox.

Hi, I'm trying to do something similar only I'd like the data to go from the text box to cell E6 then across instead of down. So, for example, I want the user to enter characters into the text box and have them appear one by one in E6, F6, G6,..etc.

Any solutions?
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top