I have couple of Cells Range A1:A12 that calculate percentage. I would like to set up a rule that if percentage in those cells is between 3% and 5% Msg box appears. I am trying following code:
Private Sub Worksheet_Calculate()
If Range("A1:A12").Value > 3% And Range("A1:A12").Value <= 5% Then
MsgBox "Message"
Else
Exit Sub
End Sub
Looks that the system does not accept above and it doesn't work
Private Sub Worksheet_Calculate()
If Range("A1:A12").Value > 3% And Range("A1:A12").Value <= 5% Then
MsgBox "Message"
Else
Exit Sub
End Sub
Looks that the system does not accept above and it doesn't work