ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable an Autostart module (https://www.excelbanter.com/excel-programming/329456-disable-autostart-module.html)

Tempy

Disable an Autostart module
 
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

*** Sent via Developersdex http://www.developersdex.com ***

galimi[_2_]

Disable an Autostart module
 
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.
--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"Tempy" wrote:

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

*** Sent via Developersdex http://www.developersdex.com ***


Bob Phillips[_7_]

Disable an Autostart module
 
This will delete a module

Dim vbMod As Object


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


--
HTH

Bob Phillips

"Tempy" wrote in message
...
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

*** Sent via Developersdex http://www.developersdex.com ***





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

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