S swain.s Dec 6, 2009 #1 what code would i have to put in VBA (data) to close the data workbook when i close the (test) workbook or visa versa
what code would i have to put in VBA (data) to close the data workbook when i close the (test) workbook or visa versa
× ×ž×™×›×ל (מיקי) ×בידן Dec 6, 2009 #3 To be more precise - use the hereunder code in the TEST WB: ==================================== Private Sub Workbook_BeforeClose(Cancel As Boolean) Workbooks("DATA.XLS").Close SaveChanges:=False End Sub ========== Micky
To be more precise - use the hereunder code in the TEST WB: ==================================== Private Sub Workbook_BeforeClose(Cancel As Boolean) Workbooks("DATA.XLS").Close SaveChanges:=False End Sub ========== Micky