crenson313
New Member
Hello ,
I am practicing to learn macro in excel , and i choose to go first in hide and unhide option , i have this button named BCD and i try to make a macro of hiding the sheets , i always get error , this is my code.
I ALSO WANT TO HAVE 1 BUTTON THAT CAN HIDE AND UNHIDE EACH CORRESPONDING SHEETS . how will i do that ? thank you
I am practicing to learn macro in excel , and i choose to go first in hide and unhide option , i have this button named BCD and i try to make a macro of hiding the sheets , i always get error , this is my code.
Code:
Sub Hide_Single()
'
' Hide_Single Macro
'
'
If Sheets("BCD").Select
ActiveWindow.SelectedSheets.Visible = False
Else
ActiveWindow.SelectedSheets.Visible = True
End Sub
I ALSO WANT TO HAVE 1 BUTTON THAT CAN HIDE AND UNHIDE EACH CORRESPONDING SHEETS . how will i do that ? thank you
