Coding Equivalent of CRL-A?

C

Caveman1957

When in a worksheet I can manually select all cells by doing a control-
is there an equivalent I can use when coding?

I tried recording a macro and it just enters the particular range tha
was selected so is not dynamic in the way control-A is.

I am trying to do this as a precondition before doing a sort on all th
data
 
C

Claus Busch

Hi,

Am Wed, 19 Sep 2012 09:25:55 +0000 schrieb Caveman1957:
When in a worksheet I can manually select all cells by doing a control-A
is there an equivalent I can use when coding?

try:
ActiveSheet.UsedRange.Select


Regards
Claus Busch
 

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

Top