Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"MyFileI have an excel workbook that when opened by the user runs a macro
from the Workbook.OnOpen event. This then displays a VB form for the user to enter some data. I need to open this workbook using VBA from Access, add some data into the cells on Sheet1, save and close the workbook and then email it to the user. The problem is that when I use WorkBooks.Open("MyFileName") the code in the Workbook.OnOpen event takes over and displays the form. Is there any way I can stop all code in the workbook from running when I open it using WorkBooks.Open("MyFileName"). The Macro security feature does not apply in this case as this method seems to ignore the setting anyway. Please help as I have reached a dead end. Kind regards Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to stop running macros everytime I run excel? | Excel Discussion (Misc queries) | |||
How do I stop Excel from opening all files w/macros & running them | Excel Discussion (Misc queries) | |||
How to stop Excel remembering/loading macro from previously opened Workbook | Excel Discussion (Misc queries) | |||
Running of a Macro when Workbook is opened | Excel Programming | |||
Workbook opened with macros disabled | Excel Programming |