How to make a worksheet visible

  • Thread starter Thread starter yosi_lb
  • Start date Start date
Y

yosi_lb

hi
I have about 40 worksheets in a workbook. each sheet has a name of a student
in a classroom.
how can I programaticy make a choosen sheet to be visible

thanks
 
Yosi

Sub unhide()
Dim whichname as String
whichname = InputBox("type in name")
Worksheets(whichname).Visible = True
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top