Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
WorkbookOpen() Auto macro
Hi All
Is there a way of preventing the Workbook_Open() code from executing when opening an Excel file with the ‘Open' method in VBA? Thanks Richard |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
WorkbookOpen() Auto macro
Use something like this Richard
You disable events before you open the file Sub test() Application.EnableEvents = False Workbooks.Open "ron.xls" Application.EnableEvents = True End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Richard" wrote in message om... Hi All Is there a way of preventing the Workbook_Open() code from executing when opening an Excel file with the 'Open' method in VBA? Thanks Richard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Open Find Dialog at WorkbookOpen | Excel Discussion (Misc queries) | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Unprotecting 4 sheets before "WorkbookOpen" macro runs | Excel Discussion (Misc queries) | |||
workbookopen doesn't function | Excel Discussion (Misc queries) |