Macro Question

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

Guest

Does anyone know the VBA code where for a range of date you want to program
the macro to go to the next empty column or row?
 
hi,

From the end of row or column , use ' end ' fucntion to get the last
filled cell
and use offset to get the next cell

like this one: by row
sub test()
range("A65536").end(xlup).offset(1,0)="Test"
end sub

try to run it several times.. to get the result...
 

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