Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello -
I was wondering if there is a way to write a macro that imports updated macros into the current Workbook? I have played with VBProject.VBComponent as follows ... lWB.VBProject.VBProject.VBComponents.Import YYY The WWW file I created by exporting the code from Sheet1 of my Master Macro. Whenever I do the Import it adds the code under Class Modules instead of replacing the code under Microsoft Excel Objects/Sheet1. Is there a way that I can actually load a macro to be in the Sheets or ThisWorkbook or will I have to move all of my code to a Module and put "call Module1.XXX" calls in the X_Click() event handlers of my Sheet? Thanks, Joe Thanks, Joe |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Joe
See http://www.cpearson.com/excel/vbe.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Joe HM" wrote in message oups.com... Hello - I was wondering if there is a way to write a macro that imports updated macros into the current Workbook? I have played with VBProject.VBComponent as follows ... lWB.VBProject.VBProject.VBComponents.Import YYY The WWW file I created by exporting the code from Sheet1 of my Master Macro. Whenever I do the Import it adds the code under Class Modules instead of replacing the code under Microsoft Excel Objects/Sheet1. Is there a way that I can actually load a macro to be in the Sheets or ThisWorkbook or will I have to move all of my code to a Module and put "call Module1.XXX" calls in the X_Click() event handlers of my Sheet? Thanks, Joe Thanks, Joe |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Great ... Thanks!
Joe |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update worksheet from Master workbook | Excel Discussion (Misc queries) | |||
Update worksheet from Master workbook | Excel Discussion (Misc queries) | |||
How do I create a set of sheets that will update from a master? | Excel Discussion (Misc queries) | |||
Update master list with other lists | Excel Worksheet Functions | |||
Best way to Update Master Database - via Spreadsheet - sent to sites | Excel Programming |