A Macro to change macros? VBA problem

  • Thread starter Thread starter MrMerton
  • Start date Start date
M

MrMerton

Hi,

My problem is this: I have made a number of macros that manipulat
data within a workbook, but at the end of the year, this workbook wil
change such that the macros will also need to be changed. Since I a
leaving before this happens, I need to create a macro that wil
automatically change all the other macros to suit the new workbook.

Can this be done? I have tried using the standard Macro Recordin
feature, but that doesn't appear to have the power. I presume this i
a problem that can only be solved using VBA, if solved at all!

Any help most gratefully received!!!

Many thanks,

Wil
 
Probably your option is to manually go through each workbook and make the
changes.

If it's just simple search / replace - I have an example on my website you
might find useful: "Search Replace Code"
 
Both answers were very useful, although in different ways. I hav
implemented both solution, albeit to different problems.

I should really have given more detail about the problem. Apologies fo
leaving it ambiguous!

At the end of the year, a new sheet within the workgroup is created an
it is to this new worksheet that the macros point.

I think a macro that uses search and replace is going to be the mos
straight-forward solution.

Regards,

Wil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top