Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Validation rules changed upon condition

Hi, all, I have a XL worksheet for user to enter data. In cell C11, I have a
validation rule to allow user to pick value from a list. I want to set up a
validation rule in cell D11 (wherever) and the available list of value to
choose depends on the value the user chose in cell C11. That means if user
choose 1 in cell C11, the validation rule in cell D11 will become a list of
"AA,BB,CC". And if user choose 2 in cell C11, the available list of value
will become "DD,EE,FF". Can anybody tell me how to do it? Do I need to write
a VBA script and how to?

Thanks in advance.

Huyeote


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Validation rules changed upon condition

Take a look at Debra Dalgleish's site:

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

Huyeote wrote:

Hi, all, I have a XL worksheet for user to enter data. In cell C11, I have a
validation rule to allow user to pick value from a list. I want to set up a
validation rule in cell D11 (wherever) and the available list of value to
choose depends on the value the user chose in cell C11. That means if user
choose 1 in cell C11, the validation rule in cell D11 will become a list of
"AA,BB,CC". And if user choose 2 in cell C11, the available list of value
will become "DD,EE,FF". Can anybody tell me how to do it? Do I need to write
a VBA script and how to?

Thanks in advance.

Huyeote


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Validation rules changed upon condition

Hi,

no need for VBA, you can do it with worksheet formulas...

make 2 named ranges.

a named range e.g.
valTable , refto =sheet2!a1:e30
valList, refto =offset(valTable;0;sheet1!a1;;1)


Then point the source of your validation to the named range valList
(pressing f3 in the source box brings up the named ranges in your book.


now if sheet1!a1=0 it will take the first column in valTable.
make it 2 and you'll have the 3rd column in the table.

check out the Offset function in excel help. It's VERY usefull.


let me know it you get it to work.. :)


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Huyeote" wrote:

Hi, all, I have a XL worksheet for user to enter data. In cell C11, I
have a validation rule to allow user to pick value from a list. I want
to set up a validation rule in cell D11 (wherever) and the available
list of value to choose depends on the value the user chose in cell
C11. That means if user choose 1 in cell C11, the validation rule in
cell D11 will become a list of "AA,BB,CC". And if user choose 2 in
cell C11, the available list of value will become "DD,EE,FF". Can
anybody tell me how to do it? Do I need to write a VBA script and how
to?

Thanks in advance.

Huyeote




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
Macrs with Validation Rules Chris Excel Worksheet Functions 1 March 10th 10 06:37 PM
Macros running with Validation Rules Chris Excel Worksheet Functions 2 March 9th 10 12:07 AM
how do I set up a validation rules with two data rules Trudy Excel Worksheet Functions 1 October 16th 06 05:42 AM
Data Validation Rules Louise Excel Worksheet Functions 6 May 10th 06 01:02 PM
Exceptions to Validation Rules Jim Johnson Excel Worksheet Functions 5 November 7th 04 01:04 PM


All times are GMT +1. The time now is 06:52 PM.

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"