Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Data Validation redux

My client likes these drop downs (using data, then validation, then list),
but I notice that, if the list you want to use is on another worksheet, you
can't do it. Since this worksheet will be replicated 100s of times in the
workbook, I really don't want to have to have a copy of the list on every
such sheet. Is there some other similar way to have a pre-populated set of
choices for a cell, where the choices come from another worksheet? Also, I
have noticed that, when my biggest spreadsheets crash and go into repair
mode, it is always the data validation drop downs that get wiped out,
sometimes all the formatting, but not always, but always these drop downs
get wiped out. So, perhaps there should be (and is) a better way/

Thanks for any help!
Dean


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Data Validation redux

Hi

You have to define the list as named range (I myself prefer dynamic named
ranges in such cases), and then you use this name as list source.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Dean" wrote in message
...
My client likes these drop downs (using data, then validation, then list),
but I notice that, if the list you want to use is on another worksheet,
you can't do it. Since this worksheet will be replicated 100s of times in
the workbook, I really don't want to have to have a copy of the list on
every such sheet. Is there some other similar way to have a pre-populated
set of choices for a cell, where the choices come from another worksheet?
Also, I have noticed that, when my biggest spreadsheets crash and go into
repair mode, it is always the data validation drop downs that get wiped
out, sometimes all the formatting, but not always, but always these drop
downs get wiped out. So, perhaps there should be (and is) a better way/

Thanks for any help!
Dean



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default Data Validation redux

Setup to use a list on one worksheet as the source list for data validation
on other sheets in the same workbook:

Select the list to be used for data validation and give it a name. See
Excel help - use "Name a cell or range" (without quote marks) as the search
for to see how to do this. Let's presume you call this range, originally
enough <g, myList.

Now when you set up your data validation in other sheets, choose List for
the Allow entry and in the Source entry, enter
=myList

That's all it takes to use a list in one sheet as the validation list in
other sheets.

As for your workbooks crashing, first piece of advice is "to crash is
typical, to have a recent backup is divine", so first recovery effort
involves having a good backup strategy.

If your range(s) to have validation or anything else is static, you could
use the Workbook_Open() event to run code to actually rebuild the formulas
each time the workbook is opened. You could record macros to perform the
actual operations and either copy the body of those macros into the _Open()
event code area or have it call those recorded macros by name. If/when you
record such macros, start with some sheet other than the one to set up
formulas/formatting/etc on selected, that way your recorded macro will start
off by selecting that sheet, assuring that the effects of the macro always
get applied to the proper sheet(s).

"Dean" wrote:

My client likes these drop downs (using data, then validation, then list),
but I notice that, if the list you want to use is on another worksheet, you
can't do it. Since this worksheet will be replicated 100s of times in the
workbook, I really don't want to have to have a copy of the list on every
such sheet. Is there some other similar way to have a pre-populated set of
choices for a cell, where the choices come from another worksheet? Also, I
have noticed that, when my biggest spreadsheets crash and go into repair
mode, it is always the data validation drop downs that get wiped out,
sometimes all the formatting, but not always, but always these drop downs
get wiped out. So, perhaps there should be (and is) a better way/

Thanks for any help!
Dean



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Data Validation redux

I tried it, but didn't know I needed to put an equal sign in front of the
range name. Silly me! Thanks to you and Arvi.

"JLatham" <HelpFrom @ Jlathamsite.com.(removethis) wrote in message
...
Setup to use a list on one worksheet as the source list for data
validation
on other sheets in the same workbook:

Select the list to be used for data validation and give it a name. See
Excel help - use "Name a cell or range" (without quote marks) as the
search
for to see how to do this. Let's presume you call this range, originally
enough <g, myList.

Now when you set up your data validation in other sheets, choose List for
the Allow entry and in the Source entry, enter
=myList

That's all it takes to use a list in one sheet as the validation list in
other sheets.

As for your workbooks crashing, first piece of advice is "to crash is
typical, to have a recent backup is divine", so first recovery effort
involves having a good backup strategy.

If your range(s) to have validation or anything else is static, you could
use the Workbook_Open() event to run code to actually rebuild the formulas
each time the workbook is opened. You could record macros to perform the
actual operations and either copy the body of those macros into the
_Open()
event code area or have it call those recorded macros by name. If/when
you
record such macros, start with some sheet other than the one to set up
formulas/formatting/etc on selected, that way your recorded macro will
start
off by selecting that sheet, assuring that the effects of the macro always
get applied to the proper sheet(s).

"Dean" wrote:

My client likes these drop downs (using data, then validation, then
list),
but I notice that, if the list you want to use is on another worksheet,
you
can't do it. Since this worksheet will be replicated 100s of times in
the
workbook, I really don't want to have to have a copy of the list on every
such sheet. Is there some other similar way to have a pre-populated set
of
choices for a cell, where the choices come from another worksheet? Also,
I
have noticed that, when my biggest spreadsheets crash and go into repair
mode, it is always the data validation drop downs that get wiped out,
sometimes all the formatting, but not always, but always these drop downs
get wiped out. So, perhaps there should be (and is) a better way/

Thanks for any help!
Dean





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
Sorting whole Protected 2003 REDUX SongBear Excel Discussion (Misc queries) 0 March 29th 10 02:48 PM
(redux) PasteSpecialValue doesnt dupe value exactly sometimes (!) joeu2004 Excel Discussion (Misc queries) 0 March 6th 09 01:41 AM
find and return adjacent value (redux)! Todd Lietha Excel Discussion (Misc queries) 3 September 26th 07 01:59 AM
EXCEL file corruption redux Dean[_8_] Excel Programming 0 March 19th 07 11:43 PM
Strange Cell behavior redux Henry[_4_] Excel Programming 2 September 13th 03 12:48 AM


All times are GMT +1. The time now is 12:10 AM.

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"