Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Hide and unhide row when asking a question

I need a formula when the worksheet come up just three question shows. but
when the last question is asked and it is a true statement I would like
excell to show the rest of the rows but if the question is no then excell
keeps the rows hidden. For example

If Question 1 is Yes(True)- Keep rows 16 through 84 hidden
IF Question 2 is Yes(True) keep rows 16 through 84 hidden
If Question 3 is Yes(True) Undie rows 16 through 84.

Am I wishing on a pipe dream?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Hide and unhide row when asking a question

This is possible using macros, the following code can be placed on the Sheet
that the questions on in the VBA code:


Private Sub Worksheet_Change(ByVal Target As Range)
If Range("D1").Text = "Yes" And Range("D2").Text = "Yes" And _
Range("D3").Text = "Yes" Then Rows("16:84").EntireRow.Hidden = False
Else _
Rows("16:84").EntireRow.Hidden = True
End Sub



You might want to place the code:

Rows("16:84").EntireRow.Hidden = True

in the workbook open statement to make sure that those rows are hidden when
the workbook opens.
As far as using a formula, I am not aware of a formula that can hide or
unhide rows or columns.

--
David
=Sub Let_me_ macronize_that_for_you!()
msgbox("Poof, it is done.")
End Sub


"Prossygk" wrote:

I need a formula when the worksheet come up just three question shows. but
when the last question is asked and it is a true statement I would like
excell to show the rest of the rows but if the question is no then excell
keeps the rows hidden. For example

If Question 1 is Yes(True)- Keep rows 16 through 84 hidden
IF Question 2 is Yes(True) keep rows 16 through 84 hidden
If Question 3 is Yes(True) Undie rows 16 through 84.

Am I wishing on a pipe dream?

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
hide-unhide Office_Novice Excel Programming 0 March 18th 08 07:11 PM
Question on Hide/Unhide cells Thulasiram[_2_] Excel Programming 4 July 26th 06 11:21 PM
Hide/Unhide Help Danno[_7_] Excel Programming 3 July 26th 06 05:43 PM
Hide Unhide Colin Excel Discussion (Misc queries) 4 April 9th 06 05:01 PM
Hide/unhide Jock W Excel Worksheet Functions 4 October 4th 05 05:02 PM


All times are GMT +1. The time now is 10:20 AM.

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

About Us

"It's about Microsoft Excel"