aziz rasul Active member Local time Today, 02:35 Joined Jun 26, 2000 Messages 1,935 Apr 16, 2013 #1 When pressing a command button on a form to open an Excel file, is it possible to prevent the Workbook event from firing up?
When pressing a command button on a form to open an Excel file, is it possible to prevent the Workbook event from firing up?
T tgroneck Registered User. Local time Yesterday, 21:35 Joined Apr 3, 2013 Messages 13 Apr 16, 2013 #2 Try: Code: Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True objExcel.EnableEvents = False objExcel.Workbooks.Open "C:\test.xlsm" objExcel.EnableEvents = True
Try: Code: Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True objExcel.EnableEvents = False objExcel.Workbooks.Open "C:\test.xlsm" objExcel.EnableEvents = True
aziz rasul Active member Local time Today, 02:35 Joined Jun 26, 2000 Messages 1,935 Apr 16, 2013 #3 I didn't realise it would be as simple as that. Many thanks.