PC Review


Reply
Thread Tools Rate Thread

Data Validation redux

 
 
Dean
Guest
Posts: n/a
 
      21st Aug 2007
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 With Quote
 
 
 
 
Arvi Laanemets
Guest
Posts: n/a
 
      21st Aug 2007
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<at>tarkon.ee )



"Dean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      21st Aug 2007
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 With Quote
 
Dean
Guest
Posts: n/a
 
      21st Aug 2007
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
news:7A8CBCEE-1823-4742-B512-(E-Mail Removed)...
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom data validation on cells with data validation values AKrobbins Microsoft Excel Worksheet Functions 2 21st Jun 2011 04:20 PM
Automatically shift chart data range: redux Sean Clayton Microsoft Excel Misc 6 28th Jul 2010 08:17 PM
Data Validation -> Validation list is larger than the cell width Barb Reinhardt Microsoft Excel Programming 1 4th Mar 2010 08:24 PM
Validation Data using Validation Table cell range..... =?Utf-8?B?RGVybW90?= Microsoft Excel Misc 16 5th Jan 2010 09:35 PM
When pasting data into a column with data validation I lose validation check Brad Microsoft Excel Misc 5 17th Apr 2004 01:11 PM


Features
 

Advertising
 

Newsgroups
 


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