Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XLHidden 2

Status
Not open for further replies.

smurf01

IS-IT--Management
Jul 6, 2002
470
GB
Hi, Can anyone help me, A former colleague created an XL workbook that has two hidden sheets if I use Format>Sheets>Unhide there are no sheets showing to unhide. If I look at the properties in VBA the sheets are set to xlHidden, I tried changing the property but it won't let me. I have scoured the code in the workbook and the sheets to see if I can find any reference to the sheets but alas NO Regards

Paul
 
The sheets are "very hidden". This means that they can only be unhidden via code

For each ws in activeworkbook.worksheets
if ws.visible = xlveryhidden then
ws.visible = true
else
end if
next

users cannot unhide the sheets manually Rgds
Geoff

Si hoc legere scis, nimis eruditionis habes
 
Geoff, Thanks for the speedy reply
Would I put that code into the Workbook ? Also how would he have hidden it originally ? Regards

Paul
 
The only thing I don't understand is why Paul can't change the status on the VBA property form. Or am I misunderstanding?
Rob
[flowerface]
 
Nope - you didn't.

But
Code:
xlVeryHidden
's not available in Design-Time so you can't change it using the Sheet's property window
And the REALLY stupid thing's you can do it the other way around: you can use the VBA property window to set an xlVeryHidden sheet's Visible property back to xlVisible

d'oh

Cheers
Nikki
 
Nikki, tried that it does not work, also the sheet is xlHidden not xlveryhidden

Regards

Paul
 
smurf01
Could be the workbook is protected. Check under TOOLS > PROTECTION: it's protected if it says UNPROTECT WORKBOOK. All options in VBA properties will be unavailable.

Dunno if it's been password-protected; if not, all you need to do is to click UNPROTECT WORKBOOK. If it is - you might have a problem ;-)

HTH

Cheers
Nikki
 
Nikki,
Are you running earlier than 97? My 97 & 2002 versions allows xlSheetVeryHidden at design time. It just LOOKS like that value is not available, but it is. Skip,
SkipAndMary1017@mindspring.com
 
Skip,

you're right - even i managed to set it at design time now ;-)

thanks
Nikki
 
Nikki,
Thanks very much, the workbook was protected. Fortunately one of the passwords i tried worked, I appreciate your help

Have a Star
Regards

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top