Need a macro

  • Thread starter Thread starter Chris D
  • Start date Start date
C

Chris D

hello,

In my worksheet I have a number of hidden sheets.
I need a macro in which I can select 1 of the hidden sheets, and unhide it.
Can anyone help?

thanks.

chris
 
Sub unhidesheet()
mysheet = InputBox("Enter sheet NAME")
Sheets(mysheet).Visible = True
End Sub
 
Thanks, that works.
1 detail to solve:
suppose I have hidden sheets named " 1", "2" etc.
I just ran nthe macro and unhided sheet "2", is it possible to make the just
insered sheet active?
 
After you make the sheet visible, execute this statement...

Sheets(mysheet).Select

Rick
 

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