Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting macro code programatically
I have a number of macros that I have written to use in
an Excel template. When a new document is created from that template, the macros get used as a kind of one-time use. However, to protect the code and make the documents smaller I would like to programmatically delete all of the macro code when the document is saved. Has anyone ever done this and could share with me how to do it? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting macro code programatically
Terry
Chip Pearson has written code for deleting modules and code. http://www.cpearson.com/excel/vbe.htm Gord Dibben Excel MVP On Tue, 31 Aug 2004 17:44:03 -0700, "Terry Lowe" wrote: I have a number of macros that I have written to use in an Excel template. When a new document is created from that template, the macros get used as a kind of one-time use. However, to protect the code and make the documents smaller I would like to programmatically delete all of the macro code when the document is saved. Has anyone ever done this and could share with me how to do it? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Add a Button Programatically plus code | Excel Discussion (Misc queries) | |||
deleting code by macro | Excel Programming | |||
deleting code by macro | Excel Programming | |||
Programatically deleting Range | Excel Programming | |||
Removing VBA Code (programatically) | Excel Programming |