OK - way out of my depth here
I'm using the code below to hide all of the sheets except the active one, but then I need to reopen a variable selection of worksheets that are specified in individual cells in a Range called "Standard_View". Note that some of the cells in the range could be blank
Any suggestions on VBA to open the specified sheets would be much appreciated!
Sub HideAllWorksheetsExceptActive()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> ThisWorkbook.ActiveSheet.Name Then
ws.Visible = xlSheetHidden
End If
Next ws
End Sub
I'm using the code below to hide all of the sheets except the active one, but then I need to reopen a variable selection of worksheets that are specified in individual cells in a Range called "Standard_View". Note that some of the cells in the range could be blank
Any suggestions on VBA to open the specified sheets would be much appreciated!
Sub HideAllWorksheetsExceptActive()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> ThisWorkbook.ActiveSheet.Name Then
ws.Visible = xlSheetHidden
End If
Next ws
End Sub