Add-In needed to Change Names

drom

Active Member
Joined
Mar 20, 2005
Messages
456
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Hi and Thanks in advance!

One of the Workbooks I am working, is quite old.
I have been working with the workbook, last 5-6 years.
Obviously 5-6 years ago I did not know much about vba, and/or about using names.

so I was applying any name to different ranges.

At present I am refereing to many of these names from vba.

Since the owner of the WorkBook is one of my biggest customers, last 3/4 weeks I have been cleaning the vba code eg: change dim Customer as boolean o dim bCustomer as boolean


I would like to change many of the names "I mean reName those names"
This is easy using a macro.


But is there any add-in to apply those New names to the vba code??

eg if: sheets("Country").range("Spain") is named Spain and in my vba code I refer to this range as:

dim spain as range: set spain=sheets("Country").range("Spain")

I would like to Rename the Name "Spain" to "cSpain" and see on my vba code:
dim spain as range: set spain=sheets("Country").range("cSpain")

Thanks!


doit manually could take me 1day
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,141,284
Messages
5,705,508
Members
421,399
Latest member
hjweiss00

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