Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I am currently writing a procedure that opens another workbook using Workbooks.Open.. The workbook that is being opened contains macros which I want disabling. Is there anyway to stop this? I am using Excel 2003 Thanks TJ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try code like the following:
Dim Sec As Long Sec = Application.AutomationSecurity Application.EnableEvents = False Application.AutomationSecurity = msoAutomationSecurityForceDisable ' open the workbook Application.EnableEvents = True Application.AutomationSecurity = Sec -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "TJ" wrote in message ... Hi I am currently writing a procedure that opens another workbook using Workbooks.Open.. The workbook that is being opened contains macros which I want disabling. Is there anyway to stop this? I am using Excel 2003 Thanks TJ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Chip
"Chip Pearson" wrote in message ... Try code like the following: Dim Sec As Long Sec = Application.AutomationSecurity Application.EnableEvents = False Application.AutomationSecurity = msoAutomationSecurityForceDisable ' open the workbook Application.EnableEvents = True Application.AutomationSecurity = Sec -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "TJ" wrote in message ... Hi I am currently writing a procedure that opens another workbook using Workbooks.Open.. The workbook that is being opened contains macros which I want disabling. Is there anyway to stop this? I am using Excel 2003 Thanks TJ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically disable macro's on new doc | Excel Discussion (Misc queries) | |||
(Disable macro's while) using the GetObject | Excel Programming | |||
Disable AutoOpen macro's | Excel Programming | |||
enable/disable macro's dialog? | Excel Programming |