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

[SOLVED] Select doesnt work in different sheet?

$
0
0
Hello,
I have this code
Code:

    Range("MyB!O2:O10").Select
    Selection.AutoFill Destination:=Range("MyB!O2:S10"), Type:=xlFillDefault

this of course works, but only If active sheet is MyB ... when I active different sheet, It doesnt work .. why? How could I fix it? Of course I can activate sheet MyB and then do this, but I'd prefer another solution, If there is any ... thanks !

Viewing all articles
Browse latest Browse all 50199

Trending Articles