ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   code to delete module / macro in another file (https://www.excelbanter.com/excel-discussion-misc-queries/193525-code-delete-module-macro-another-file.html)

Ray Clark[_2_]

code to delete module / macro in another file
 
Is it possible to write code to delete a module or macro in another excel file.

I have a file that I savecopyas but need to remove the modules and macros
from the copy file only.



FSt1

code to delete module / macro in another file
 
hi
yes it is possible. see this site....
http://cpearson.com/excel/vbe.aspx
make note of the warning.

Regards
FSt1

"Ray Clark" wrote:

Is it possible to write code to delete a module or macro in another excel file.

I have a file that I savecopyas but need to remove the modules and macros
from the copy file only.




All times are GMT +1. The time now is 06:54 PM.

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