Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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
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
Add a Button Programatically plus code jlclyde Excel Discussion (Misc queries) 1 December 9th 08 04:29 PM
deleting code by macro Rob van Gelder[_4_] Excel Programming 0 June 29th 04 09:44 AM
deleting code by macro jriehl Excel Programming 2 June 29th 04 09:43 AM
Programatically deleting Range Grant Reid Excel Programming 10 May 14th 04 03:07 PM
Removing VBA Code (programatically) Marnie R Excel Programming 1 February 13th 04 01:02 AM


All times are GMT +1. The time now is 01:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"