View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Selecting range for Data Validation list

Debra Dalgleish shows how to create dependent lists:
http://contextures.com/xlDataVal02.html

Don Wiss wrote:

I have a spreadsheet that is drawing from an Access database.

The user has a main choice, then for some of the main choices there are sub
selections. If there are only a couple, I can write an if to select the
different ranges on the Data Validation dialog box. But I'd like more
indpendence. When the database is tied I download tables. So if the main
choice has a sub selection, I have the letters that are the suffixes to the
range names with the various sub menus.

Here's an example of what I'd like to do:

MenuSuffix="WC"
=IF(MenuSuffix="",Range("A1"),"Index" & MenuSuffix)

Just how do I turn "Index" & MenuSuffix into the range value?

Don <www.donwiss.com (e-mail link at home page bottom).


--

Dave Peterson