ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro to delete another macro (https://www.excelbanter.com/excel-discussion-misc-queries/228343-macro-delete-another-macro.html)

Gary McCarthy

macro to delete another macro
 
Can a macro be created to delete another macro.

I have a file that when opened, a macro runs to save the file, run some
processes, then saves as another file. However, when the new file is opened
that macro runs again. Is there a command that will delete the macro before
it saves?

Thanks.

Sheeloo

macro to delete another macro
 
See Chip Pearson's excellent article 'Programming The VBA Editor' at
http://www.cpearson.com/excel/vbe.aspx

Bookmark his site and visit often...

"Gary McCarthy" wrote:

Can a macro be created to delete another macro.

I have a file that when opened, a macro runs to save the file, run some
processes, then saves as another file. However, when the new file is opened
that macro runs again. Is there a command that will delete the macro before
it saves?

Thanks.



All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com