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!

How to activate a cell in the same column on the next row in Excel. 2

Status
Not open for further replies.

andreymurom

Programmer
May 18, 2001
10
US
Hello everybody,
How would I do that? To activate cell in the next column on the same row I do ActiveCell.Next.Activate. What should I use to make it go down one row in the same column without hardcoding anything?
Thank you very much.
 
Rather than using ActiveCell.Next.Activate use the following:

ActiveCell.Offset(1, 0).Activate

'Offset' uses two parameters the first is rows, and the second is columns. So the above statement says move down one row, stay in the same column. Positive numbers move you down in rows and to the right in columns. Negative numbers move you up in rows or to the left in columns. Use 0 to choose the same row or the same column that is already activated.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top