Private Sub Worksheet_Calculate()
If Range("E10").Value >= 186 Then
Workbooks.Open filname:="Diva.xls"
Sheets(15).PrintOut
ActiveWorkbook.Close False
End If
End Sub
Private Sub Worksheet_Calculate()
If Range("E10").Value >= 186 Then
Application.EnableEvents = False
Workbooks.Open Filename:="Diva.xls"
Sheets(15).PrintOut
ActiveWorkbook.Close False
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_Calculate()
Dim c As Range
For Each c In Range("E10,E52,E94")
If c.Value >= 186 Then
Application.EnableEvents = False
Workbooks.Open Filename:="Diva.xls"
Sheets(15).PrintOut
ActiveWorkbook.Close False
Exit For
End If
Next c
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Calculate()
If Range("E10").Value >= 186 Then
Application.EnableEvents = False
Workbooks.Open Filename:="Diva.xls"
Sheets(15).PrintOut
ActiveWorkbook.Close False
Application.EnableEvents = True
ElseIf Range("E52").Value >= 186 Then
Application.EnableEvents = False
Workbooks.Open Filename:="Diva.xls"
Sheets(16).PrintOut
ActiveWorkbook.Close False
Application.EnableEvents = True
ElseIf Range("E94").Value >= 186 Then
Application.EnableEvents = False
Workbooks.Open Filename:="Diva.xls"
Sheets(8).PrintOut
ActiveWorkbook.Close False
Application.EnableEvents = True
End If
End Sub