Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Howdee all.
Hope everyone had a great weekend. I'm looking to work through a series of workbooks that have numerous-- and I mean lots-- of hidden tabs. My goal is to xlveryhidden all hidden tabs, so that other users who don't have the need can't access a hidden tab. My initial thoughts on this have been- if worksheet.visibility = xlhidden then worksheet.visibility = xlveryhidden. My problem is that when I've tried this, it'd hang up, or give me an error. I'm sure that it's something real simple, but so far I haven't been able to make it work. And yes, I'd be using a for loop to work through all the hidden tabs in a given file. Thank you. Best. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Never mind. I figured it out.
Gee... now wasn't that an easy one to answer? ;-) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Steve" wrote in message
... Never mind. I figured it out. Gee... now wasn't that an easy one to answer? ;-) Steve, In the future, if you arrive at a solution before others have responded to your thread, it would be helpful if you posted your solution so others who have similar problems could benefit from it. For this particular thread it is no longer necessary since Don has provided a working solution. Skiffle |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry 'bout that Skiff. I was working on multiple things last night and
forgot..... I normally do this, so here it is. Sub VryHideShts() 'is macro is to very hide unwanted worksheets. ' HideSheet Macro Dim sh As Worksheet For Each sh In Worksheets 'sh.Select If sh.Visible = 0 Then sh.Visible = 2 'Else: MsgBox "No tabs to hide.", vbCritical, "Error" End If Next End Sub |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Don.
Thanks for both the veryhide, and the unhide code. It'll definitely come in handy. Best. "Don Guillett" wrote: Sub makeverhidden() For Each sh In Worksheets If sh.Visible = False Then sh.Visible = xlVeryHidden Next sh End Sub Sub unhidesheets() For Each sh In Worksheets sh.Visible = True Next sh End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Steve" wrote in message ... Howdee all. Hope everyone had a great weekend. I'm looking to work through a series of workbooks that have numerous-- and I mean lots-- of hidden tabs. My goal is to xlveryhidden all hidden tabs, so that other users who don't have the need can't access a hidden tab. My initial thoughts on this have been- if worksheet.visibility = xlhidden then worksheet.visibility = xlveryhidden. My problem is that when I've tried this, it'd hang up, or give me an error. I'm sure that it's something real simple, but so far I haven't been able to make it work. And yes, I'd be using a for loop to work through all the hidden tabs in a given file. Thank you. Best. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Auto-run macro after auto-query refresh (Excel2000,sr1) | Excel Programming | |||
Macro Auto Run(2) | Excel Worksheet Functions | |||
Auto-run ONCE macro | Excel Programming |