Hi,
How can I have a macro unhide (show) all hidden (including xlveryhidden) worksheets, no matter what they're called?
Cheers.
Hi,
How can I have a macro unhide (show) all hidden (including xlveryhidden) worksheets, no matter what they're called?
Cheers.
Last edited by EdWoods; 10-17-2013 at 08:41 PM.
Hi mate.
Just a thought.... you could use a list box to show all sheet tabs in a work book then go something like this:
Worksheets (listbox.value).Visible = True
I have not tested this, but mix it up a bit
There is most likely an easier way, but I find the hard and complicated ways are more fun
Cheers
Dan
Thanks Dan, but I really wanted it to do it automatically (in the background) without having to specify what sheets to unhide (just all of them).
Cheers.
Would you want to look at a Workbook_Open Event?
This would mean that when the workbook opens it runs the code without any input required.
Thanks again Dan.
I have no problem initiating the macro to unhide the sheets. I just need to know the code to automatically unhide all sheets, no matter what they're called.
Cheers.
Maybe:
![]()
Please Login or Register to view this content.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Ha! you bet me to it
Here's one too. for a Workbook_open Event
Private Sub Workbook_Open()
Dim Sheet As Worksheet
For Each Sheet In ActiveWorkbook.Worksheets
Sheet.Visible = xlSheetVisible
Next Sheet
End Sub
Copy this into your workbook code
That looks like it does it.
Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks