Toggle button

I’m currently using a toggle button to hide only 1 sheet.  I want to creat another toggle button to hide multiple sheets.  I’ve tried using an Array but it doesn’t seem to work.  I’ll appreciate any help. Thank you.

Top Contributor Asked on March 21, 2018 in VBA: Macros.
Add Comment
1 Answer(s)

Sub hide()
Sheet3.Visible = False
Sheet4.Visible = False
Sheet5.Visible = False
‘ You can hide as many sheets as you like.
End Sub
Sub Unhide()
Sheet3.Visible = True
Sheet4.Visible = True
Sheet5.Visible = True
End Sub

Expert Answered on March 23, 2018.
Add Comment
  • Found this useful?

    Please share using the share button above.

    If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.

    Found the answer useful and wants to credit the user, then vote the answer (vote up).

  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.