define cell

  • Thread starter Thread starter Sanjiv
  • Start date Start date
S

Sanjiv

Hello,

I want to enter, say 2 char in a cell and then want to jump to the next cell
on the right without having to press enter key. Possible ?

thnx.
Sanjiv.
 
Not possible.

Excel has no way of knowing when you are finished editing that cell until
you indicate by moving out of that cell.

VBA code will not run while in Edit mode.


Gord Dibben MS Excel MVP
 
Put the following macros in a standard module:

Sub onn()
Application.OnKey "2", "MyMacro"
End Sub

Sub offf()
Application.OnKey "2"
End Sub

Sub MyMacro()
ActiveCell.Value = 2
ActiveCell.Offset(0, 1).Select
End Sub

First run onn. From then on, if you touch the 2 key, a 2 will be entered in
the active cell and selection will move one cell to the right.

To cancel, run offf.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top