I have a cell in my spreadsheet that I have given the range name "Sh1_Name". Currently the value in the cell is the word "Product".
In my macro I want to tell Excel to set OpsSht(1) to the "Product" worksheet, but cannot come up with the right code. I have...
Dim OpsSht(10) As Worksheet
Set OpsSht(1) = Sheets(Range("Sh1_Name"))
... but the second line does not work. Could someone help?
Thanks,
MikeG
In my macro I want to tell Excel to set OpsSht(1) to the "Product" worksheet, but cannot come up with the right code. I have...
Dim OpsSht(10) As Worksheet
Set OpsSht(1) = Sheets(Range("Sh1_Name"))
... but the second line does not work. Could someone help?
Thanks,
MikeG