Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I conditionally hide a worksheet

I would like to have different worksheet tabs that are only viewable based on
answers given on a main page. Say I have 4 conditional pages, based on 1 of
4 answers given on that main page only one would be viewable and the other
three would remain hidden.

Is this even possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default How do I conditionally hide a worksheet

I don't know of a way to do that with a formula, but you could use a
worksheet change macro like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("B7").Address And Target.Formula =
"Hide" Then
Worksheets("Sheet2").Visible = False
End If
End Sub

It will hide Sheet2 if B7 is changed and it is changed to the word
Hide.
Don't forget to write a way for it to return ;)

On Jun 17, 2:34 pm, Jeremehovah
wrote:
I would like to have different worksheet tabs that are only viewable based on
answers given on a main page. Say I have 4 conditional pages, based on 1 of
4 answers given on that main page only one would be viewable and the other
three would remain hidden.

Is this even possible?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditionally Hide Rows [email protected] Excel Discussion (Misc queries) 6 May 11th 07 08:35 PM
Way to conditionally hide rows? Cuda Excel Worksheet Functions 3 November 10th 06 03:18 PM
a way to conditionally hide tabs in a range JWR Excel Discussion (Misc queries) 3 July 3rd 06 08:05 PM
Is there a way to conditionally hide a row? Maxwell Sprinkler Excel Discussion (Misc queries) 1 June 1st 05 12:56 AM
Conditionally Hide Rows tamato43 Excel Discussion (Misc queries) 4 May 11th 05 04:27 PM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"