Add-In needed to Change Names

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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