Renaming Named Ranges

dstempke

New Member
Joined
Jan 29, 2008
Messages
15
Hi all,

I have a workbook template with a couple dozen named ranges. Since it is a template, I am naming all of the ranges with an XX at the start, i.e. XXmonths or XXcreditdue. When I use the template to load data for a client, I want to change the XX's to the acronym of the client I am working on to ensure there are no conflicts between workbooks. I'd like to assign a macro to do it. Can I create a macro to replace XX with text in a specified cell in my workbook?

Part two of my question involves all of my pivot tables. When I rename my named ranges, all of my formuals automatically update. I have about 10 pivottables and pivotcharts that do not, so I have to go through and update the data source to the new named range. Can a macro change the reference for ALL of my pivottables to one that I specify?

I'd appreciate the help!

Darrell
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Well that's a little embarrassing for me. I don't know why there would have been a conflict. Thanks for saving me from myself.

D.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

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