Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Dynamic Validation Lists

I am using XL 2002. In my workbook I have a sheet that stores the values
used for validation lists. One such list is SalesReps. This is a dynamic
list. If I use a named range for the values in the list, and the list either
grows or shrinks, I will need to use a formula for the RefersTo property so
that when this list is referred to in data validation it will be accurate.

Does anyone know how to code this or what formula I could use to make the
RefersTo dynamic?

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Dynamic Validation Lists

Hey
I have build an dynamic validation list by using the
lookup-formula in the cells wich are in use for the
validation.
By building stuctures like this:

Level 1 contains the main-categories (example
1. Course
2. HelpDesk
3. Development
.... etc

Level 2 contains the underdoing issues like:
1. Excel Advanced
2. Word MOUSexpert
.... etc

By using lookup on the value in level 1, my formula
respons the level 2 ussues in the range.

If this means any sence to your problem, I can make a
specific sample and mail it to you

Regards
Nils Morten Blakstad
ConsEasy

-----Original Message-----
I am using XL 2002. In my workbook I have a sheet that

stores the values
used for validation lists. One such list is SalesReps.

This is a dynamic
list. If I use a named range for the values in the list,

and the list either
grows or shrinks, I will need to use a formula for the

RefersTo property so
that when this list is referred to in data validation it

will be accurate.

Does anyone know how to code this or what formula I could

use to make the
RefersTo dynamic?

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Dynamic Validation Lists

Joe

Debra Dalgleish has instructions for this at.........

http://www.contextures.on.ca/xlNames01.html#Dynamic

Also check out her info on Data Validation lists.

http://www.contextures.on.ca/xlDataVal01.html

Gord Dibben Excel MVP

On Tue, 17 Aug 2004 10:03:01 -0700, Joe wrote:

I am using XL 2002. In my workbook I have a sheet that stores the values
used for validation lists. One such list is SalesReps. This is a dynamic
list. If I use a named range for the values in the list, and the list either
grows or shrinks, I will need to use a formula for the RefersTo property so
that when this list is referred to in data validation it will be accurate.

Does anyone know how to code this or what formula I could use to make the
RefersTo dynamic?

TIA,


  #4   Report Post  
Posted to microsoft.public.excel.programming
djh djh is offline
external usenet poster
 
Posts: 8
Default Dynamic Validation Lists

Use the offset function to define a dynamic range.

Say your data is on Sheet1, A1:A10

From Insert:Name:Define:

Fill in your data's Name and then in the REFERS TO Use

=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)


-----Original Message-----
Nils,

This isn't quite what I am looking for. The problem that

I need to solve is
this:

If I have a list of 5 items in a column and I name the

range that contains
the columns, myNamedRange, when I add a value to the list

(so that now I have
6 items), how do I dynamically update the RefersTo

property of the
myNamedRange to include the newest value in the list?

Also if the list is reduced to four items, how do I

dynamically update the
RefersTo property of myNamedRange to only include the

four items and not show
a blank for the deleted fifth item?

Thanks,

Joe

" wrote:

Hey
I have build an dynamic validation list by using the
lookup-formula in the cells wich are in use for the
validation.
By building stuctures like this:

Level 1 contains the main-categories (example
1. Course
2. HelpDesk
3. Development
.... etc

Level 2 contains the underdoing issues like:
1. Excel Advanced
2. Word MOUSexpert
.... etc

By using lookup on the value in level 1, my formula
respons the level 2 ussues in the range.

If this means any sence to your problem, I can make a
specific sample and mail it to you

Regards
Nils Morten Blakstad
ConsEasy

-----Original Message-----
I am using XL 2002. In my workbook I have a sheet

that
stores the values
used for validation lists. One such list is

SalesReps.
This is a dynamic
list. If I use a named range for the values in the

list,
and the list either
grows or shrinks, I will need to use a formula for the

RefersTo property so
that when this list is referred to in data validation

it
will be accurate.

Does anyone know how to code this or what formula I

could
use to make the
RefersTo dynamic?

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development
.


.

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
Merge & Sort Dynamic Lists w/ Data Validation retailmessiah Excel Discussion (Misc queries) 3 August 5th 08 04:20 PM
Merge & Sort Dynamic Lists w/ Data Validation retailmessiah Excel Worksheet Functions 3 August 5th 08 04:20 PM
Dynamic Data validation Lists Curriesun Excel Discussion (Misc queries) 1 July 24th 08 08:40 PM
Dynamic validation lists Dave Peterson[_3_] Excel Programming 0 August 10th 04 01:49 AM
Validation With Dependent Dynamic Ranges Lists Alex[_10_] Excel Programming 0 September 4th 03 08:31 PM


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