#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Validation

Good morning,

In my Excel sheet, I have two fields: Project Type (B2) and Type of Work
(B4). Currently, I use Validation on both fields to have a drop-down for a
list of items. What I am hoping to do is, for example, if I select Project A
from the Project Type field, I only want Cell B4 to list the types of works
that apply to Project A, instead of listing entire list.

Can it be done?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Validation

John,

Thanks very much for your help.

I am very new to this. Can you help me more?

Currently, the validations on these two cells are looking up from the
Project Type sheet and the Type of Work sheet, respectively. If I understood
correctly, I should have only one sheet with the combination of Project Types
and Types of Works. Am I correct?

Can you tell me more on setting up the sheets and the code to use?

Thanks.

"John Bundy" wrote:

You can give a specific list based on project type
if A is selected you could use list in column a and if B then list in column b

Range("e5").Validation _
.Modify xlValidateList, xlValidAlertStop, _
xlBetween, "=$A$1:$A$10"

-John

"AccessHelp" wrote:

Good morning,

In my Excel sheet, I have two fields: Project Type (B2) and Type of Work
(B4). Currently, I use Validation on both fields to have a drop-down for a
list of items. What I am hoping to do is, for example, if I select Project A
from the Project Type field, I only want Cell B4 to list the types of works
that apply to Project A, instead of listing entire list.

Can it be done?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default Validation

It doesn't really matter where you put the link at you just need a list for
if Project A is selected and one for if something else. How do you have it
set up now? If I select project A from the first validation, what cells do
you want to use to populate the list for the second? and another plan?

"Tom Ogilvy" wrote:

go to

Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Look under data validation.

She specifically talks about this situation.

Dependent lists - data validation
http://www.contextures.com/xlDataVal02.html

--
Regards,
Tom Ogilvy


"AccessHelp" wrote:

John,

Thanks very much for your help.

I am very new to this. Can you help me more?

Currently, the validations on these two cells are looking up from the
Project Type sheet and the Type of Work sheet, respectively. If I understood
correctly, I should have only one sheet with the combination of Project Types
and Types of Works. Am I correct?

Can you tell me more on setting up the sheets and the code to use?

Thanks.

"John Bundy" wrote:

You can give a specific list based on project type
if A is selected you could use list in column a and if B then list in column b

Range("e5").Validation _
.Modify xlValidateList, xlValidAlertStop, _
xlBetween, "=$A$1:$A$10"

-John

"AccessHelp" wrote:

Good morning,

In my Excel sheet, I have two fields: Project Type (B2) and Type of Work
(B4). Currently, I use Validation on both fields to have a drop-down for a
list of items. What I am hoping to do is, for example, if I select Project A
from the Project Type field, I only want Cell B4 to list the types of works
that apply to Project A, instead of listing entire list.

Can it be done?

Thanks.

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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 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 08:13 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"