Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50085

Select sheet and range at once

$
0
0
Can anyone remind me why this doesn't work.

Code:

sheets("sheet1").range("A1").select
It will work if I separate them.

Code:

sheets("sheet1").select
range("A1").select

and sometimes it works if I do this

Code:

sheets("sheet1").range("A1").activate
But I forget why the first version doesn't work.

Viewing all articles
Browse latest Browse all 50085

Trending Articles