How to unhide sheets in Excel 2010

I know this sounds like a super basic question, but for the life of me I cannot figure out where 2 out of 6 of my sheets are within my workbook. Normally I can right-click the tabs and unhide, but Excel is telling me there is nothing to unhide. Meanwhile, the worksheets.count function in VBA is telling me that there are 6 sheets in the file, even though I can only see 4 sheets. The file has no password protection. If worksheets(1).activate is run, then all the tabs that I can see are suddenly unselected. Where could those 2 secret sheets possible be?
shampouyaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
Right click on one sheet and Select All Sheets. Then scroll the sheets from left to right and right to left (are they scrolled off the sheet bar?)
0
shampouyaAuthor Commented:
No luck, the sheet names are rather short, so scrolling isn't crowding any of them out of view.
0
JohnBusiness Consultant (Owner)Commented:
I really do not know why you can only see 4 sheets if there are 6 there and none hidden.

What happens if you try to move the sheets around (re-order them). Is one hidden underneath?
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

shampouyaAuthor Commented:
No luck there either; those first 2 sheets are still not visible. Sheets(3).activate works fine though.
0
JohnBusiness Consultant (Owner)Commented:
Another thing you might try is to copy the workbook to a USB key, take it to a different computer and try on the different computer.
0
jmcgOwnerCommented:
Just throwing out a guess here, but after Select All Sheets can you then do an Unhide?
0
Saqib Husain, SyedEngineerCommented:
Try

sheets(1).Visible=xlSheetVisible

for each of the sheets
0
Saurabh Singh TeotiaCommented:
Those 2 worksheets if you see in the Visual basic editor which is in ALT+F11 in view you will find these worksheets..Now what has happened is the property of these 2 worksheets are set to

xlsheetveryhidden

Now whenever you set the worksheets to be very hidden they can't be unhidden from the excel workbook and they need to be unhidden from the visual basis only...In order to do that press f4 on your desired sheet in visual basic editor and change the properties from xlveryhidden to xlvisible which will do what you are looking for...

Enclosed is the screenshot for your reference...

Hidden
Also in order to unhide all the worksheets you can use the following code...

Sub unhide()

    Dim ws As Worksheet

    For Each ws In ActiveWorkbook.Worksheets
        ws.Visible = xlSheetVisible

    Next ws
End Sub

Open in new window


Saurabh...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shampouyaAuthor Commented:
great answers, thanks guys
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.