Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
PeterW
 
Posts: n/a
Default Data Validation - using a list from another workbook


Hi

I am trying to establish data validation in "WorkbookA" from another
workbook "WorkbookB".

The location of WorkbookB may change from time to time, but will always
be located in same path as WorkbookA, but under a different subroot, say
the "data\" subroot. The rangename that holds the data to be validated
is "List_Months" in WorkbookB.

I have created a range in WorkbookA called "MyList" by adding the
following formula to the "refers to" box,
="'"&LEFT(INFO("directory"),FIND("Data\",INFO("dir ectory"))-1)&"WorkbookB"&".xls'!"&"List_Months2"

When I attempt to use the name under the "list" option in Data
Validation I receive the message "the list source must be a delimited
list or a reference to a single row or column."

Thanks in advance for your assistance
Peter


--
PeterW
------------------------------------------------------------------------
PeterW's Profile: http://www.excelforum.com/member.php...fo&userid=6496
View this thread: http://www.excelforum.com/showthread...hreadid=493675

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Data Validation - using a list from another workbook

Hi!

This can't be done (at least, not the way that you want).

You can't refer to another file' defined range name. You would have to build
the defined name in the current file that refers to the other file but in
order to do that you would have to use the Indirect function. In order for
the Indirect function to work the other file MUST be open. So, the drop down
will only work as long as the other file is open which probably defeats the
purpose.

Biff

"PeterW" wrote in
message ...

Hi

I am trying to establish data validation in "WorkbookA" from another
workbook "WorkbookB".

The location of WorkbookB may change from time to time, but will always
be located in same path as WorkbookA, but under a different subroot, say
the "data\" subroot. The rangename that holds the data to be validated
is "List_Months" in WorkbookB.

I have created a range in WorkbookA called "MyList" by adding the
following formula to the "refers to" box,
="'"&LEFT(INFO("directory"),FIND("Data\",INFO("dir ectory"))-1)&"WorkbookB"&".xls'!"&"List_Months2"

When I attempt to use the name under the "list" option in Data
Validation I receive the message "the list source must be a delimited
list or a reference to a single row or column."

Thanks in advance for your assistance
Peter


--
PeterW
------------------------------------------------------------------------
PeterW's Profile:
http://www.excelforum.com/member.php...fo&userid=6496
View this thread: http://www.excelforum.com/showthread...hreadid=493675



  #3   Report Post  
Posted to microsoft.public.excel.misc
PeterW
 
Posts: n/a
Default Data Validation - using a list from another workbook


Hi Biff

Thanks for the response. I am happy for the other file to be open at
the same time, however I can't use INDIRECT as it doesn't allow the
file path to be selected.

Any other work around would be appreciated.

Peter


--
PeterW
------------------------------------------------------------------------
PeterW's Profile: http://www.excelforum.com/member.php...fo&userid=6496
View this thread: http://www.excelforum.com/showthread...hreadid=493675

  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Data Validation - using a list from another workbook

Hi!

As the source for the drop down use something like this:

=INDIRECT("'C:\TV\[Test1.xls]Sheet1'!A1:A5")

Biff

"PeterW" wrote in
message ...

Hi Biff

Thanks for the response. I am happy for the other file to be open at
the same time, however I can't use INDIRECT as it doesn't allow the
file path to be selected.

Any other work around would be appreciated.

Peter


--
PeterW
------------------------------------------------------------------------
PeterW's Profile:
http://www.excelforum.com/member.php...fo&userid=6496
View this thread: http://www.excelforum.com/showthread...hreadid=493675



  #5   Report Post  
Posted to microsoft.public.excel.misc
PeterW
 
Posts: n/a
Default Data Validation - using a list from another workbook


Thanks Biff ... that works


--
PeterW
------------------------------------------------------------------------
PeterW's Profile: http://www.excelforum.com/member.php...fo&userid=6496
View this thread: http://www.excelforum.com/showthread...hreadid=493675

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
Drop Down List Font Size in Data Validation Ron Green New Users to Excel 1 November 18th 05 12:48 AM
Data Validation List Length Alex Mackenzie Excel Worksheet Functions 4 November 1st 05 01:27 AM
Data Validation and Blanks in List GoneRural Excel Worksheet Functions 1 October 26th 05 05:03 PM
monitor cell that uses data validation list for change rgarber50 Excel Discussion (Misc queries) 2 August 1st 05 06:15 AM
Refer to seperate workbook for validation list for drop downs? Dee Excel Discussion (Misc queries) 2 March 4th 05 07:50 PM


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