![]() |
A Macro to change macros? VBA problem
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 -- Message posted from http://www.ExcelForum.com |
A Macro to change macros? VBA problem
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" -- Rob van Gelder - http://www.vangelder.co.nz/excel "MrMerton " wrote in message ... Hi, My problem is this: I have made a number of macros that manipulate data within a workbook, but at the end of the year, this workbook will change such that the macros will also need to be changed. Since I am leaving before this happens, I need to create a macro that will automatically change all the other macros to suit the new workbook. Can this be done? I have tried using the standard Macro Recording feature, but that doesn't appear to have the power. I presume this is a problem that can only be solved using VBA, if solved at all! Any help most gratefully received!!! Many thanks, Will --- Message posted from http://www.ExcelForum.com/ |
A Macro to change macros? VBA problem
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 -- Message posted from http://www.ExcelForum.com |
All times are GMT +1. The time now is 12:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com