R
rob nobel
How can I stop this code working except for the wkbk it's associated with?
If I open the wkbk that has this code and then another wkbk, and I try to
close both wkbks at the same time....kapow!
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Calculation = xlCalculationAutomatic
Application.CellDragAndDrop = True
If Sheet4.FilterMode Then Sheet4.ShowAllData
If Sheet4.Range("N13") > 0 Then Sheet4.Range("N5:N12") = False
Sheet10.Select
End Sub
Thanks
Rob
If I open the wkbk that has this code and then another wkbk, and I try to
close both wkbks at the same time....kapow!
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Calculation = xlCalculationAutomatic
Application.CellDragAndDrop = True
If Sheet4.FilterMode Then Sheet4.ShowAllData
If Sheet4.Range("N13") > 0 Then Sheet4.Range("N5:N12") = False
Sheet10.Select
End Sub
Thanks
Rob