Or simply use data validation with a list of sheet names and select the one to show and tie to a worksheet_Change event
From: Rajan_Verma Sent: Tuesday, August 23, 2011 2:00 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Need help in maro Hi Prasad, Ashish’s Code working fine..See the attached Sheet. From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Suryaprasad Sent: Tuesday, August 23, 2011 10:56 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Need help in maro Hi All, I was trying to write a macro which is not working well, attached is the sheet where is require a small code the below is the what i require: I have a main sheet which is assgined with controls and i have 5 TABS , what i want is when i click on the first control named with Sheet1 in the main TAB then the sheet1 should open automatically and the rest of the 4 TAB's should be hidden and the same logic should be applicable for all the other controls , please help Thanks Prasad. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel