Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy VBA Module to new workbook
I have a script that I run the formats a bunch of data and copies 5 sheets
and puts them in a new work book. I want to add an autorun module to this new book. I'm not sure if it is easier to add the module from scratch or copy it, but I want the module to be there when the other code I have saves the new work book. Can anyone offer any suggestions? thanks! Mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy VBA Module to new workbook
You might find the following web page of interest:
http://www.cpearson.com/excel/vbe.aspx "Mark" wrote: I have a script that I run the formats a bunch of data and copies 5 sheets and puts them in a new work book. I want to add an autorun module to this new book. I'm not sure if it is easier to add the module from scratch or copy it, but I want the module to be there when the other code I have saves the new work book. Can anyone offer any suggestions? thanks! Mark |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy VBA Module to new workbook
Create a template file with the code, layouts etc already in-situ. Then
when creating a new workbook use the template. -- Regards, Nigel "Mark" wrote in message ... I have a script that I run the formats a bunch of data and copies 5 sheets and puts them in a new work book. I want to add an autorun module to this new book. I'm not sure if it is easier to add the module from scratch or copy it, but I want the module to be there when the other code I have saves the new work book. Can anyone offer any suggestions? thanks! Mark |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy VBA Module to new workbook
Mark wrote:
I have a script that I run the formats a bunch of data and copies 5 sheets and puts them in a new work book. I want to add an autorun module to this new book. I'm not sure if it is easier to add the module from scratch or copy it, but I want the module to be there when the other code I have saves the new work book. Can anyone offer any suggestions? thanks! Mark Make an excel addin that contains your module. That way the module is available to all workbooks as long as the addin is selected in excel. P |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy Module to new Workbook | Excel Programming | |||
How to copy module form one workbook to another | Excel Programming | |||
Run worksheet module code from workbook module? | Excel Programming | |||
Automatically Delete WorkBook 2 modules by using Workbook 1 module | Excel Programming | |||
Copy VBA Module and Form from Workbook to another workbook | Excel Programming |