ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove VB Module from workbook (https://www.excelbanter.com/excel-programming/278686-remove-vbulletin-module-workbook.html)

Nikos Yannacopoulos[_2_]

Remove VB Module from workbook
 
Is there a way to programatically remove a module from
either the acive or another open workbook?

My goal is to save a workbook with another name on a
network drive (through VB code), without including the VB
module in the original.

Any suggestions?

Thanks,
Nikos

Chip Pearson

Remove VB Module from workbook
 
Nikos,

Yes, it is possible. See www.cpearson.com/excel/vbe.htm for details and
example code.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com

"Nikos Yannacopoulos" wrote in message
...
Is there a way to programatically remove a module from
either the acive or another open workbook?

My goal is to save a workbook with another name on a
network drive (through VB code), without including the VB
module in the original.

Any suggestions?

Thanks,
Nikos




Nikos Yannacopoulos[_2_]

Thanks!
 
Chip,

Many thanks, that was relly helpful!

Regards,
Nikos
-----Original Message-----
Nikos,

Yes, it is possible. See www.cpearson.com/excel/vbe.htm

for details and
example code.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com

"Nikos Yannacopoulos" wrote in message
...
Is there a way to programatically remove a module from
either the acive or another open workbook?

My goal is to save a workbook with another name on a
network drive (through VB code), without including the

VB
module in the original.

Any suggestions?

Thanks,
Nikos



.



All times are GMT +1. The time now is 10:15 AM.

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