Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro change problem Dr Hackenbush Excel Discussion (Misc queries) 3 February 6th 10 04:54 PM
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 Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
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 Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM


All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"