If Not IsActive (input2) ThenMsgBox "CHECK ENERGY MONITOR!!"End If 