Private Sub Workbook_BeforeClose(Cancel As Boolean)
[COLOR=#333333]Application.EnableEvents = False[/COLOR]
[COLOR=#333333]Set myRng = Range("H11") ' [/COLOR]
[COLOR=#333333]If Application.WorksheetFunction.Sum(myRng) = 0 Then[/COLOR]
[COLOR=#333333]MsgBox "[/COLOR][COLOR=#574123]You must select at least ONE location.[/COLOR][COLOR=#333333]"[/COLOR]
If MsgBox("Click cancel to select a location", 36, "Confirm") = vbNo Then
Cancel = True
End If
[COLOR=#333333]End If[/COLOR]
[COLOR=#333333]Set myRng = Nothing[/COLOR]
[COLOR=#333333]Application.EnableEvents = True[/COLOR]
End Sub