Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro change problem | Excel Discussion (Misc queries) | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
Macro Size Limit / open macros with macros? | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming |