Prevent Workbook_Open macro

B

big t

Hi everyone,

I am opening one workbook from another using this command:

Workbooks.Open(wbkname)

but when wbkname opens it runs the Workbook_Open subroutine in the
ThisWorkbook section.

Is there a way I can prevent it from running this code?

I am running XP and Excel 2003.
TIA
big t
 
F

Frank Kabel

Hi
not tested but try:
application.enableevents=false
Workbooks.Open(wbkname)
application.enableevents=true
 
Top