what VBA command is used to go to the next blank row in Excel?

  • Thread starter Thread starter Bobby J
  • Start date Start date
B

Bobby J

I'm writing a macro to cut and paste data to the next blank row in an Excel
file. Any ideas?
 
Depends of what you want. No difference IF no blanks

nextblankrow=cells(activecell.row,"a").end(xldown).row+1
lastblankrow=cells(rows.count,"a").end(xlup).row+1
 
Back
Top