Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Drop Down Lists

Hello,

I am trying to create drop down lists that will, when N/A is chosen as the
option, it will hide/remove that section in my form. It will be done to
shorten the amount of printing by reducing the number of cells at apply to
that drop down list. I don't know if drop down lists are capable of doing
this in Excel 2003/Word 2003 or if drop down list is the correct term for
this type of action. Please Help. Brandon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Drop Down Lists

Brandon
You're right that a Data Validation cell does not have that
functionality. But there is a way. Use a Worksheet_Change macro. Something
like this:
Private Sub Worksheet_Change(ByVal Target As Range)
If IsEmpty(Target.Value) Then Exit Sub
If Intersect(Target, Range("F5")) Is Nothing Then Exit Sub
If Target.Value = "N/A" Then _
Range("6:7").EntireRow.Hidden = True
End If
End Sub
This macro will hide rows 6 and 7 if the value in F5 is "N/A". Is this what
you want?
This macro must be placed in the sheet module of the sheet in question. To
access that module, right-click the sheet name, select View Code. Paste
this macro into that module. HTH Otto
"Brandon" wrote in message
...
Hello,

I am trying to create drop down lists that will, when N/A is chosen as the
option, it will hide/remove that section in my form. It will be done to
shorten the amount of printing by reducing the number of cells at apply to
that drop down list. I don't know if drop down lists are capable of doing
this in Excel 2003/Word 2003 or if drop down list is the correct term for
this type of action. Please Help. Brandon



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
Drop down lists from multiple source lists RoofIL Excel Worksheet Functions 3 February 18th 10 09:44 PM
Drop Down Lists: Allow option of adding own data if not in drop do ruperthouse Excel Worksheet Functions 8 July 21st 09 07:29 PM
How to create 2 dependent drop down lists from 1 original drop dow Caroline Excel Discussion (Misc queries) 5 May 1st 09 02:19 PM
Drop down lists that auto create and then filter the next drop down list [email protected] Excel Worksheet Functions 2 September 30th 07 11:53 AM
Multiple lists with repeated values for dependet drop down lists mcmanusb Excel Worksheet Functions 1 September 29th 06 12:13 AM


All times are GMT +1. The time now is 01:42 AM.

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"