Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default How to update Macros from Master Macro?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to update Macros from Master Macro?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default How to update Macros from Master Macro?

Great ... Thanks!

Joe

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
Update worksheet from Master workbook txheart Excel Discussion (Misc queries) 1 August 14th 08 05:12 PM
Update worksheet from Master workbook txheart Excel Discussion (Misc queries) 0 August 13th 08 09:17 PM
How do I create a set of sheets that will update from a master? funky_funky_almonds Excel Discussion (Misc queries) 2 September 13th 05 03:59 PM
Update master list with other lists Chab Excel Worksheet Functions 0 August 4th 05 03:46 PM
Best way to Update Master Database - via Spreadsheet - sent to sites ImraneA Excel Programming 2 January 27th 04 08:27 AM


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