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


Hi,
I have two validation lists.
If I change the first list, I want the second list to adjust to the choice
made.

For example:
If I choose "Fruits" from List 1, I want the result to be in List 2: Apple,
Bananas, Lemon
If I choose "Countries" from List 1, I want the result to be in List 2: USA,
Taiwan, Iraq

I know how to get information from txt-files and how to populate the
validation lists.
I use "Workbook_SheetChange" to look for changes.

How do I find out if it is one of the Validation lists the user is changing?

Please ask more if something is unclear.

// Ulf
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Validation list


for the first validation list, use the items to range name the other lists

so if your main list is Countries, Fruits
have a table of countries range named countries and a table of fruits range
named fruits

your 2nd validation the LIST and the source is =INDIRECT(A1)
- replace A1by whatever the cell is for the 1st validation cell

example file:
http://cid-b8e56c9a5f311cb7.skydrive...Validation.xls


"Ulf Nilsson" wrote in message
...
Hi,
I have two validation lists.
If I change the first list, I want the second list to adjust to the choice
made.

For example:
If I choose "Fruits" from List 1, I want the result to be in List 2:
Apple,
Bananas, Lemon
If I choose "Countries" from List 1, I want the result to be in List 2:
USA,
Taiwan, Iraq

I know how to get information from txt-files and how to populate the
validation lists.
I use "Workbook_SheetChange" to look for changes.

How do I find out if it is one of the Validation lists the user is
changing?

Please ask more if something is unclear.

// Ulf


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,276
Default Validation list


Hi,
Debra Web has exactly the same example

http://www.contextures.com/xlDataVal02.html


"Ulf Nilsson" wrote:

Hi,
I have two validation lists.
If I change the first list, I want the second list to adjust to the choice
made.

For example:
If I choose "Fruits" from List 1, I want the result to be in List 2: Apple,
Bananas, Lemon
If I choose "Countries" from List 1, I want the result to be in List 2: USA,
Taiwan, Iraq

I know how to get information from txt-files and how to populate the
validation lists.
I use "Workbook_SheetChange" to look for changes.

How do I find out if it is one of the Validation lists the user is changing?

Please ask more if something is unclear.

// Ulf

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
Use VBA to reset data validation (=list) value to first value in that list (list is a named range) ker_01 Excel Programming 7 October 27th 08 03:13 PM
data validation invalid in dynamic validation list ilia Excel Programming 0 November 7th 06 12:54 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 PM


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