View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Debra Dalgleish Debra Dalgleish is offline
external usenet poster
 
Posts: 2,979
Default Data Validation in Excel 2002

You could use dependent data validation lists:

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

geoff_francis_cox wrote:
Hi

I want to limit the content of a cell based on what is entered in another
cell. For example if I enter "John" in cell A1 then in A2 I only want to be
able to choose from "Smith" or "Jones". But if I enter "Mary" into cell A1
then in cell A2 I only want to be able to choose "Jackson", "Bush" or
"McKenzie".

Is there a way I can do this in Excel 2002 (XP) using a macro or some sort
of VBA code?

Hope someone out there can help. Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com