I've used "Sheets(Array(" in the past to manipulate multiple sheets at once. I.e.:
I'd like to be able to do something similar with worksheet variables:
The above code gives me a "Type Mismatch" error...
Thanks in advance!
VBAjedi
Code:
Sheets(Array("Sheet1", "Sheet2").Select
I'd like to be able to do something similar with worksheet variables:
Code:
Dim Sh3110 As Worksheet
Set Sh3110 = "Worksheet Name"
...
Sheets(Array(Sh3110, Sh3160, Sh3180, Sh3190)).Cells.Clear
Sheets(Array(Sh3110, Sh3160, Sh3180, Sh3190)).Cells.(1,1).Value = "Some string"
The above code gives me a "Type Mismatch" error...
Thanks in advance!
VBAjedi