Hi,
I am developing an application where I programmatically remove some macros from workbook A, using a macro in workbook B prior to saving workbook A.
In Excel 2003 it seems that the default security level for macros is set to NOT trust "access to Visual Basic Project" programmatically. This stops my program to remove the macros in workbook A from running.
Does anyone know of some VBA code that I can run from workbook B to change the check box in macro security to allow programmatic "access to Visual BAsic Project"?
Once the macros are removed from workbook A then I want to return the Excel security setting to NOT trust "access to Visual Basic Project" programmatically.
I know how to do this manually, but would like to maximise security by only lowering security for the time required.
Hoping someone can help.
All the Best,
Ian
I am developing an application where I programmatically remove some macros from workbook A, using a macro in workbook B prior to saving workbook A.
In Excel 2003 it seems that the default security level for macros is set to NOT trust "access to Visual Basic Project" programmatically. This stops my program to remove the macros in workbook A from running.
Does anyone know of some VBA code that I can run from workbook B to change the check box in macro security to allow programmatic "access to Visual BAsic Project"?
Once the macros are removed from workbook A then I want to return the Excel security setting to NOT trust "access to Visual Basic Project" programmatically.
I know how to do this manually, but would like to maximise security by only lowering security for the time required.
Hoping someone can help.
All the Best,
Ian