Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default New to VBA - Help with Deleting Macro's

I have a macro in a workbook that does several things, the last thing is to
save the file under a new name. The reason is that I want to send the saved
file to a customer, but I don't want the macro attached. After the file has
been saved, if I go in and delete the macro, I still get the "Enable",
"Disable" macro pop-up screen when I open the file. Why is this still
showing up after I have deleted the macro, and how can I get rid of it so
that my customers don't see it.
Any help would be appreciated. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default New to VBA - Help with Deleting Macro's

Hi Ron

You must delete the empty module also
My mail add-in have a option to delete all the VBA in the file you send
http://www.rondebruin.nl/mail/add-in.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron" wrote in message ...
I have a macro in a workbook that does several things, the last thing is to
save the file under a new name. The reason is that I want to send the saved
file to a customer, but I don't want the macro attached. After the file has
been saved, if I go in and delete the macro, I still get the "Enable",
"Disable" macro pop-up screen when I open the file. Why is this still
showing up after I have deleted the macro, and how can I get rid of it so
that my customers don't see it.
Any help would be appreciated. Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default New to VBA - Help with Deleting Macro's

Ron,
Thanks for all your help. Your add-in looks pretty slick.

Thanks again.

"Ron de Bruin" wrote:

Hi Ron

You must delete the empty module also
My mail add-in have a option to delete all the VBA in the file you send
http://www.rondebruin.nl/mail/add-in.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron" wrote in message ...
I have a macro in a workbook that does several things, the last thing is to
save the file under a new name. The reason is that I want to send the saved
file to a customer, but I don't want the macro attached. After the file has
been saved, if I go in and delete the macro, I still get the "Enable",
"Disable" macro pop-up screen when I open the file. Why is this still
showing up after I have deleted the macro, and how can I get rid of it so
that my customers don't see it.
Any help would be appreciated. Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default New to VBA - Help with Deleting Macro's

Dear Ron
I have been using following code which "modifies itself".

ThisWorkbook.VBProject.VBComponents("Module2").Cod eModule.DeleteLines
1,
ThisWorkbook.VBProject.VBComponents("Module2").Cod eModule.CountOfLines
ThisWorkbook.VBProject.VBComponents("Module2").Cod eModule.InsertLines
1, CodeM

Where CodeM is a any string containing a text of any macro. If You want
to delete it - CodeM is a "".

Greetings

Martin

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
Macro's T.F. Excel Discussion (Misc queries) 1 April 9th 10 10:16 PM
Macro's are fun Chris Excel Worksheet Functions 0 February 7th 08 06:09 AM
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
deleting more than one page with macro's shrek Excel Worksheet Functions 1 August 1st 05 01:52 PM
Am I asking too much of my macro's loulou Excel Discussion (Misc queries) 3 February 21st 05 11:19 PM


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