Hi,
I am wondering if it is possible to automatically hide specific sheets in a workbook based on a variable entered on the first sheet?
Thanks,
Brad J.
Hi,
I am wondering if it is possible to automatically hide specific sheets in a workbook based on a variable entered on the first sheet?
Thanks,
Brad J.
Hello Brad J.,
This example uses Sheet1 as the worksheet name. Substitute the name of the worksheet you want to hide for Sheet1.
Example of Hidding a Worksheet using a Variable:
If Variable = Condition Then
Worksheets("Sheet1").Visible = False
End If
To Prevent the User from Changing the Setting Use:
If Variable = Condition Then
Worksheets("Sheet1").Visible = xlVeryHidden
End If
The only way to make the worksheet visible again is thorugh code by setting Visible = True.
Hope this answers your question,
Leith Ross
Last edited by Leith Ross; 03-31-2005 at 05:18 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks