i have a dynamic named range which provides the sheets names in a list (let's say A2 = Austria, A3 = Germany, A4 = Poland) This list can vary in size depending on the user so I have an offset in the named range to capture all the cells in column A with a name in it.
I would like to use an IF statement to veryhide certain sheets based on this named range.
something like:
Public Sub test()
Sheets(Array(Range("MyRange"))).Visible = xlVeryHidden
End Sub
with the above i get the following error: Run-time error '13': Type mismatch
any suggestions please.
Thank you Paul