• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hide/Unhide using Macro in button form

Status
Not open for further replies.

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.

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 :)
 
Status
Not open for further replies.
Back
Top