Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro's | Excel Discussion (Misc queries) | |||
Macro's are fun | Excel Worksheet Functions | |||
Hide Macro's in Toolbar / Macro's list | Excel Discussion (Misc queries) | |||
deleting more than one page with macro's | Excel Worksheet Functions | |||
Am I asking too much of my macro's | Excel Discussion (Misc queries) |