Move the active cell

G

Guest

Dear Sirs,

Can someone help to write a Macro to move the active cell to my designated
location, not by cell reference. But go to somewhere by direction and
distance.

Example: The active cell is B1, but it is variable. I need the active cell
to go to the next cell in its right hand side, it means C1. Or from C1 to D1,
Or from C3 to C4.

Is it possible? Can someone help?
 
N

Norman Jones

Hi Dennis,

If your intention is to select the next cell in the
current row programmatically, Papou has suggested
the required code.

If, however, your intention is to select the next cell in
the current row in response to the Enter key, try:

Menu | Tools | Options | Edit |
Move selection after Enter | Right
 

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

Top