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
 

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