ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Updating cells which reference a defined name (https://www.excelbanter.com/excel-discussion-misc-queries/117968-updating-cells-reference-defined-name.html)

Mike Miller

Updating cells which reference a defined name
 
I am using defined names as a validation criteria for cells in a
workbook. I have a worksheet that will contain the list of all
facilities and a seperate worksheet that will contain the realationship
between the facility and locations within the facility.

Example:

Defined Name Facility Code

ABC
DEF
EFG

Now I have a seperate sheed that will identify various things at the
particular Facilities

Example:

ABC - Boardroom
ABC - Cafeteria

What I want to know is if the code of ABC in my defined name is changed
to say ABC123, how can I automatically update the reference in the
worksheet that uses this defined name as a validation criteria?

Mike


Debra Dalgleish

Updating cells which reference a defined name
 
You could do this with programming. There's a sample file here, that you
may be able to adapt to your workbook (test it on a backup copy):

http://www.contextures.com/excelfiles.html

Under Data Validation, look for "DV0022 - Update Validation Selections"

Mike Miller wrote:
I am using defined names as a validation criteria for cells in a
workbook. I have a worksheet that will contain the list of all
facilities and a seperate worksheet that will contain the realationship
between the facility and locations within the facility.

Example:

Defined Name Facility Code

ABC
DEF
EFG

Now I have a seperate sheed that will identify various things at the
particular Facilities

Example:

ABC - Boardroom
ABC - Cafeteria

What I want to know is if the code of ABC in my defined name is changed
to say ABC123, how can I automatically update the reference in the
worksheet that uses this defined name as a validation criteria?

Mike



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 02:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com