"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
Bookmarks