Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to hide a column when value=1

Im tryng to do an interactive questionnaire, so that it would appear a
different list of questions depending on the previous answer. Therefore, Im
trying to show only the right questions for the previous answers, hidding the
rest of questions by hidding the column or the row in which they are placed.
So, what do I have to do?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How to hide a column when value=1

Hy!

You can use the following code to hide columns:

If (value = 1) Then
Worksheets("Sheet1").Range("B:C").EntireColumn.Hid den = True
Else
Worksheets("Sheet1").Range("B:C").EntireColumn.Hid den = False
End If

Regards
Christian

"angeloso" schrieb im Newsbeitrag
...
Im tryng to do an interactive questionnaire, so that it would appear a
different list of questions depending on the previous answer. Therefore,
Im
trying to show only the right questions for the previous answers, hidding
the
rest of questions by hidding the column or the row in which they are
placed.
So, what do I have to do?



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 Column TNGIRLKK Excel Discussion (Misc queries) 2 June 10th 09 08:31 PM
Hide Column If Usedrange of Column ISBLANK Follow-up [email protected] Excel Discussion (Misc queries) 1 April 12th 09 10:00 PM
Hide Column If Usedrange of Column ISBLANK [email protected] Excel Discussion (Misc queries) 4 April 12th 09 09:47 PM
UN-hide column A???? The Hun Excel Discussion (Misc queries) 2 February 23rd 08 06:37 AM
Hide column or row based on a cell in the column or row? SacGuy Excel Discussion (Misc queries) 0 January 24th 06 06:51 PM


All times are GMT +1. The time now is 05:34 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"