Redefine name from another workbook

Eric Hearn

New Member
Joined
Mar 17, 2006
Messages
42
Book 1 uses the following data validation criteria to look up data in Book 2
' = INDIRECT("Codes") '.

If the list in Book 2 is expanded (or contracted) can Book 2 programmatically redefine the definition of 'Codes' in Book 1?

T.I.A.

Eric Hearn
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
If Codes is the name of a range in Book 2, and the list Codes refers to expands or contracts, it is possible to have Book 1 redefine the name to correspond to the desired range. But it ishould be easier to make Codes a dynamic named range in Book 2 such that it automatically adjusts to the length of the list as items are added or deleted. That way Book 1 will not have to do anything. If you are not familiar with dynamic named ranges, I recommend this site:

http://www.beyondtechnology.com/geeks007.shtml

Damon
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,847
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top