Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving the activecell relative to the current one in excel VBA?

Status
Not open for further replies.

petey

Programmer
Mar 25, 2001
383
US
Hi,

I'm trying to move my active cell position in a particular direction relative to the current one, no matter where i start..
basically i want the equivalent effect to using the cursor keys to move cells..

how do i do this?? surely this should be simple.. but i'm lost :(

Thanks for any help :)

Petey
 
You can use the offset property in an Excel macro:

ActiveCell.Offset(rows, columns).Select

for example:
ActiveCell.Offset(1, 1).Select
moves down 1 row and over 1 column
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top