Removing a module with code

  • Thread starter Thread starter KimberlyC
  • Start date Start date
K

KimberlyC

Hi

Is it possible to remove a module (with code) that is located in another
workbook.
Here's what I need to do:
I would like to run code from an addin file that would remove module1 in the
activeworkbook .

Any help would be greatly appreciated.

Thanks!
Kimberly
 
Hi Kimberly,
See Chip Pearson's "Deleting A Procedure From A Module" within
Programming To The VBE
http://www.cpearson.com/excel/vbe.htm

You should be able to change ThisWorkbook.
to something like Workbooks("BOOK1").
and change the obvious things for module
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top