relative cell reference in a VBA macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to select specific rows in my sheet, move to the last record in my sheet and then down one more row before pasting. How can I alter the VBA code to move the cursor down one row from it's current position, without specifying a particular row number?
 
Hi
activecell.offset(1,0).select

Though you won't need to select a cell for your pasting operation
 
To move down one row:

ActiveCell.Offset(1, 0).Select

To select the cell below the last filled cell in column A:

Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
 

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

Back
Top