Good afternoon,
I've created various sheets all of which have their own finalised percentage - as part of this, I was able to create a pop-up message that when the percentage exceeds 100% (or in the case '1' as I couldn't establish how to get it to recognise 100% on the VBA) a pop-up would be generated notifying them that they have exceeded 100%. My issue is however, if the cell is blank (or not yet typed on) if you select ANY cell on the sheet, but don't type anything, the pop-up message comes up. As soon as the cell is greater than blank or 0, the pop-up message doesn't return until after 100% has been exceeded.
Is there anyway I can amend the below code so that it disables the pop up if the percentage is 0 or blank but re-enables once it is over 100%?
The coding is as follows;
Private Sub Worksheet_Change(ByVal Target As Range)
Set Target = Me.Range("AC9")
If Target.Value > 1 Then
MsgBox "You exceeded 100%, please leave a note confirming your reasoning"
End If
End Sub
I've created various sheets all of which have their own finalised percentage - as part of this, I was able to create a pop-up message that when the percentage exceeds 100% (or in the case '1' as I couldn't establish how to get it to recognise 100% on the VBA) a pop-up would be generated notifying them that they have exceeded 100%. My issue is however, if the cell is blank (or not yet typed on) if you select ANY cell on the sheet, but don't type anything, the pop-up message comes up. As soon as the cell is greater than blank or 0, the pop-up message doesn't return until after 100% has been exceeded.
Is there anyway I can amend the below code so that it disables the pop up if the percentage is 0 or blank but re-enables once it is over 100%?
The coding is as follows;
Private Sub Worksheet_Change(ByVal Target As Range)
Set Target = Me.Range("AC9")
If Target.Value > 1 Then
MsgBox "You exceeded 100%, please leave a note confirming your reasoning"
End If
End Sub