Disable an Autostart module

  • Thread starter Thread starter Tempy
  • Start date Start date
T

Tempy

Hi,

Is it possible to disable/delete an Autostart module with code ?
If this is possible, could you please help me some code.

Thanks

Tempy
 
I believe you can hold the left SHIFT key down whilst loading Excel to avoid
loading any auto_open macro's. You can then disable the macro's from the
Tools, Add-Ins menu.
 
This will delete a module

Dim vbMod As Object


Set vbMod = ThisWorkbook.VBProject.vbcomponents("Module2")
ThisWorkbook.VBProject.vbcomponents.Remove vbMod
 

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