Tricky one: Change of references within Macros

HolgerP

New Member
Joined
Dec 8, 2003
Messages
11
I have an application which pulls information from multiple spreadsheets into an MS Access db. Access provides the web-reporting online. Macros and Excel generate additional reporting. The entire app is hosted on a server, therefore all Macros Webpages reference to this server. Now I was told that I have to move my app of to a new server, which means I have to re-point my reference to the new location. This is very painful as I have a lot of references within the 60 Macros I created. Is there a tool availabel which allows me a mass-change or do I really have to go manually through all Macros? Any help is greatly appreciated. Mr. Excel rocks !
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
My personal recommendation, however brutal, is for you to manually change all 60 macros. But, you need to upgrade them to make it easier in the future.

What many people do, myself included, is to put critical information that may need to be changed into a table - and then in the code refer to that data within the table. Net result? Make a change once in a single field in a table (that you always know where it is) and you've just changed an unlimited number of references in every bit of code you use.

My question is - are you using macros or are you using VBA code modules?
One benefit of VBA code is - you remember that little old Find & Replace option in Excel? It works in VBA code modules. You could mass change every exact text string match with a couple keystrokes. I'm *not sure* how hard it is to do the same thing in a macro.

*If* you're using macros. Try this - convert them all to code (built in utility) and then try editing them. Might take awhile to do 60, and then you should probably manually cut n paste them into one or more (group logically however you wish) code modules....and then do a find/replace on that.

Mike
 
Upvote 0

Forum statistics

Threads
1,223,699
Messages
6,173,907
Members
452,536
Latest member
Chiz511

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