Hello guru's,
I have the following:
It is failing with out of range error and "select method of worksheet class failed" on either
Sheet10 is a hidden tab. Sheet2 is not hidden.
What is wrong?
Thanks in advance.
I have the following:
Code:
Set Sh = ThisWorkbook.Sheets("Sheet10")
With Sh
Set rng = .Cells(1, .Columns.count).End(xlToLeft)
Set rng = Range(rng, rng.End(xlToLeft))
End With
rng.Copy
'
'Sheets("Sheet2").Select
ThisWorkbook.Sheets("Sheet2").Select
It is failing with out of range error and "select method of worksheet class failed" on either
Code:
'Sheets("Sheet2").Select
ThisWorkbook.Sheets("Sheet2").Select
Sheet10 is a hidden tab. Sheet2 is not hidden.
What is wrong?
Thanks in advance.