Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Named Ranges

Hi all,

I have a worksheet with data validation set up on 3 cells
containing "in cell" dropdown lists which derive their
data from named ranges which reside in another (hidden)
worksheet. I am looking for some code that will
programatically allow a user to add new entries to the
named range associated with each dropdown list and also
to select an existing entry and delete it if necessary.

Clear as mud...? It is to me but i'm sure all you
geniuses will find this a breeze.

Thanks heaps.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Named Ranges

How would you want the user to indicate that they wanted to do this? How
would they indicate what they wanted to add or which item they wanted to
delete. Would you have a special cell with the validation applied but the
warning disabled? (so the user could make a new entry).

When an entry is removed, can the cell in the hidden sheet containing that
entry be deleted (with the other data shiftin up) or will this impact data
in other parts of the sheet, so the entries must be cleared and the
following entries copied up to fill the hole.

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
Hi all,

I have a worksheet with data validation set up on 3 cells
containing "in cell" dropdown lists which derive their
data from named ranges which reside in another (hidden)
worksheet. I am looking for some code that will
programatically allow a user to add new entries to the
named range associated with each dropdown list and also
to select an existing entry and delete it if necessary.

Clear as mud...? It is to me but i'm sure all you
geniuses will find this a breeze.

Thanks heaps.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Named Ranges

g'day Tom

Thanks for the response....

A user simply types an entry into the cell associated
with the dropdown list. Data validation detects the entry
as not being part of the list and prompts the user as
such with a question "Do you wish to Add to list?" If
they respond "YES" the code kicks in and adds what they
typed to the list. If they respond "NO" normal data
validation processes apply.

On the deletion side, the cell containing the item to be
deleted is removed and the named range resized
accordingly.

Hope this helps.


regards,
Neal
-----Original Message-----
How would you want the user to indicate that they wanted

to do this? How
would they indicate what they wanted to add or which

item they wanted to
delete. Would you have a special cell with the

validation applied but the
warning disabled? (so the user could make a new entry).

When an entry is removed, can the cell in the hidden

sheet containing that
entry be deleted (with the other data shiftin up) or

will this impact data
in other parts of the sheet, so the entries must be

cleared and the
following entries copied up to fill the hole.

--
Regards,
Tom Ogilvy

"Neal" wrote in

message
...
Hi all,

I have a worksheet with data validation set up on 3

cells
containing "in cell" dropdown lists which derive their
data from named ranges which reside in another (hidden)
worksheet. I am looking for some code that will
programatically allow a user to add new entries to the
named range associated with each dropdown list and also
to select an existing entry and delete it if necessary.

Clear as mud...? It is to me but i'm sure all you
geniuses will find this a breeze.

Thanks heaps.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Named Ranges

Data validation doesn't work that way.

--
Regards,
Tom Ogilvy

"Neal" wrote in message
...
g'day Tom

Thanks for the response....

A user simply types an entry into the cell associated
with the dropdown list. Data validation detects the entry
as not being part of the list and prompts the user as
such with a question "Do you wish to Add to list?" If
they respond "YES" the code kicks in and adds what they
typed to the list. If they respond "NO" normal data
validation processes apply.

On the deletion side, the cell containing the item to be
deleted is removed and the named range resized
accordingly.

Hope this helps.


regards,
Neal
-----Original Message-----
How would you want the user to indicate that they wanted

to do this? How
would they indicate what they wanted to add or which

item they wanted to
delete. Would you have a special cell with the

validation applied but the
warning disabled? (so the user could make a new entry).

When an entry is removed, can the cell in the hidden

sheet containing that
entry be deleted (with the other data shiftin up) or

will this impact data
in other parts of the sheet, so the entries must be

cleared and the
following entries copied up to fill the hole.

--
Regards,
Tom Ogilvy

"Neal" wrote in

message
...
Hi all,

I have a worksheet with data validation set up on 3

cells
containing "in cell" dropdown lists which derive their
data from named ranges which reside in another (hidden)
worksheet. I am looking for some code that will
programatically allow a user to add new entries to the
named range associated with each dropdown list and also
to select an existing entry and delete it if necessary.

Clear as mud...? It is to me but i'm sure all you
geniuses will find this a breeze.

Thanks heaps.



.



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
named ranges? Confused_Euffy[_2_] Excel Worksheet Functions 7 March 17th 08 04:37 PM
Named Ranges diaare Excel Worksheet Functions 0 August 24th 07 04:16 PM
Named ranges SheriTingle Excel Discussion (Misc queries) 2 February 14th 07 06:00 PM
Named Ranges Joe Gieder Excel Worksheet Functions 2 February 16th 06 01:31 AM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


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