INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Jobs from Indeed

XLHidden

XLHidden

(OP)
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

RE: XLHidden

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

RE: XLHidden

(OP)
Geoff, Thanks for the speedy reply
Would I put that code into the Workbook ? Also how would he have hidden it originally ?

Regards

Paul

RE: XLHidden

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

RE: XLHidden

Nope - you didn't.

But 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

RE: XLHidden

(OP)
Nikki, tried that it does not work, also the sheet is xlHidden not xlveryhidden

Regards

Paul

RE: XLHidden

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

RE: XLHidden

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

RE: XLHidden

Skip,

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

thanks
Nikki

RE: XLHidden

(OP)
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

RE: XLHidden

& a star for Skip for putting me right

Cheers folks!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close