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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
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
 

Forum statistics

Threads
1,141,630
Messages
5,707,511
Members
421,511
Latest member
mgroah1

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
Top