Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2008

Tip: Looking for answers? Try searching our database.

Need a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris D - 23 May 2008 22:06 GMT
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
Don Guillett - 23 May 2008 22:11 GMT
Sub unhidesheet()
mysheet = InputBox("Enter sheet NAME")
Sheets(mysheet).Visible = True
End Sub

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> hello,
>
[quoted text clipped - 6 lines]
>
> chris
Chris D - 24 May 2008 16:06 GMT
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?

> Sub unhidesheet()
> mysheet = InputBox("Enter sheet NAME")
[quoted text clipped - 11 lines]
> >
> > chris
Rick Rothstein (MVP - VB) - 26 May 2008 07:09 GMT
After you make the sheet visible, execute this statement...

Sheets(mysheet).Select

Rick

> Thanks, that works.
> 1 detail to solve:
[quoted text clipped - 18 lines]
>> >
>> > chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.