LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to replace a VBA module?

I have hundreds of spreads with the same code. Is there an easy way to
update the code in all of them, without having to manually edit each one?

It would be nice if this could be done automatically, i.e. have a
template which contains the latest code, and when a spread was opened,
the spread would look at the date when the template was changed, and if
it was changed since the last time the spread was opened, then the
spread would automatically input the new code from the template.

However, this requires a way in VBA to delete a code module and replace
it with a module from another excel file. Is this possible? Thanks. -
Mark

 
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
Which macro module wal50 Excel Discussion (Misc queries) 4 March 17th 09 07:46 PM
Delete macro that is not in a module [email protected] Excel Discussion (Misc queries) 5 September 21st 07 06:15 PM
Macro names in a Module [email protected] Excel Programming 7 July 28th 05 05:12 PM
Removing a module with a macro bb Excel Programming 1 December 22nd 04 02:07 PM
When open an old xls, an new macro is in a new module. Tom Ogilvy Excel Programming 0 February 13th 04 12:57 PM


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

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

About Us

"It's about Microsoft Excel"