Moving the cursor

G

Guest

I would like to move the cursor to the first or any coloumn in the same row
writing a macro. Can anyone help.

Thanks in advance
 
N

NickHK

Assuming you not mrean the mouse cursor, but the active cell, here's afew
options:

Range("A1").select
Activecell.offset(10,0).select
Application.Goto Range("IV1")

NickHK
 
J

Joerg

Here is another one:
Activecell.EntireRow.Cells(1).select

This will move the "cursor" to the first column in the same row. For any
other column change the value 1 to the desired column number.

Joerg
 

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