View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default what VBA command is used to go to the next blank row in Excel?

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

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bobby J" <Bobby
wrote in message
...
I'm writing a macro to cut and paste data to the next blank row in an
Excel
file. Any ideas?