Add-In needed to Change Names

drom

Well-known Member
Joined
Mar 20, 2005
Messages
540
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,222,180
Messages
6,164,423
Members
451,894
Latest member
480BOY

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