Autoselect range

  • Thread starter Thread starter WK
  • Start date Start date
W

WK

All columns and rows are filled with data. How do all automatically
select the range using a macro so that I can copy it out to other
worksheet?
 
If A1 is in your range:

range("A1").currentregion.copy

If not, replace it with a cell that is.

Or, just click on a cell in your range before running the macro for this:

selection.currentregion.copy


tj
 

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