Hello everyone,
I'd like to alter some VB code to hide all the sheets not labeled "Goals". Basically, what I am trying to do is have a user run a macro, have Excel open the "Goals" tab, and hide all the other sheets in the workbook. Do I need to list all my other sheets, or can VB just hide all sheets and unhide the "Goals" sheet? Here is my current code:
Sub GoToGoals()
'
' GoToGoals Macro
'
'
Sheets("Goals").Select
Range("B6").Select
End Sub
Thanks everybody!
Pete
I'd like to alter some VB code to hide all the sheets not labeled "Goals". Basically, what I am trying to do is have a user run a macro, have Excel open the "Goals" tab, and hide all the other sheets in the workbook. Do I need to list all my other sheets, or can VB just hide all sheets and unhide the "Goals" sheet? Here is my current code:
Sub GoToGoals()
'
' GoToGoals Macro
'
'
Sheets("Goals").Select
Range("B6").Select
End Sub
Thanks everybody!
Pete