Can't find a hidden worksheet that appears in the name manager

  • Thread starter Thread starter pawlingJohn
  • Start date Start date
P

pawlingJohn

I have some hidden worksheet that i can not unhide. They appear in the Name
Manager and work in formulae but I can't do the unhide the usual way.
 
When you say "in the usual way" I presume you mean using menu

Format-->Sheet-->Unhide

but the sheet is not found? It may be very hidden ("xlSheetVeryHidden")

use VBA to unhide all sheets this way

Dim Sheet As Worksheet

For Each Sheet In ThisWorkbook.Worksheets
Sheet.Visible = xlSheetVisible
Next Sheet

Hopefully MS won't come up with a Very Very Hidden later or we're in trouble
:)
 
It depends. Is this a one-time thing that you need to do on a particular
workbook? Or do you need to unhide these sheets every time you open the
workbook (because someone else hides them?) Or do you want to click a button
to hide/unhide sheets as desired?

To unhide sheets automatically when the workbook is opened, put those lines
of code in the Workbook_Open subroutine:

Private Sub Workbook_Open()
'
Dim Sheet As Worksheet
'
For Each Sheet In ThisWorkbook.Worksheets
Sheet.Visible = xlSheetVisible
Next Sheet
'
End Sub
 
Thanks Charlie

Charlie said:
It depends. Is this a one-time thing that you need to do on a particular
workbook? Or do you need to unhide these sheets every time you open the
workbook (because someone else hides them?) Or do you want to click a button
to hide/unhide sheets as desired?

To unhide sheets automatically when the workbook is opened, put those lines
of code in the Workbook_Open subroutine:

Private Sub Workbook_Open()
'
Dim Sheet As Worksheet
'
For Each Sheet In ThisWorkbook.Worksheets
Sheet.Visible = xlSheetVisible
Next Sheet
'
End Sub
 

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