LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Is it possible to copy vba macros into a workbook using a vba macro to do the copying

You could put the macros in an XLAM (addin) that also loads a custom
menu. This makes the current code always contained in a single
(distributable) file, and obviates the need for your period files to
contain any code at all. Just redistribute any new version of your
addin as needed!

Normally, I'd 'tag' the project workbooks so the addin knows which
files to make its menus available to. I use a template for the fiscal
period file so a new one can be started in new fiscal periods.

So then...

Addin:
- contains all code/forms/features/functionality
- creates/destroys its own custom menus at startup/shutdown
- only enables menus when one of its project files is active

Template:
- reusable project file used by the addin for dedicated tasks
- new template created by the addin for each new fiscal period

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 
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
Macroto delete extra space in a cell Metfan Excel Programming 3 January 17th 13 03:04 AM
Copying macros to another workbook dpatcep Excel Discussion (Misc queries) 2 September 9th 09 09:03 PM
Use VBA to copy macros from one workbook to another Dean@ERYC[_2_] Excel Programming 3 April 30th 08 04:19 PM
Copy workbook without Macros Robert[_34_] Excel Programming 1 February 15th 07 01:44 AM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Excel Programming 1 April 1st 06 08:48 PM


All times are GMT +1. The time now is 10:39 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"