Hi!
I have a group of cells on sheetA which contain SUMFIS formulas connected to sheetB. Amounts are posted on sheetB and then the sums are calculated on sheetA.
I have conditional formats set on the sums on sheetA to go red once the sums exceed a maximum amount. However, I also want to add a ONE TIME message box to show up once the maximum sum is surpassed. I have been able to use an If statement within VBA to show once the max amount is exceeded, but then it just keeps popping up.
I'm new to VBA, so I'm not sure how to correct.
My code for one specific cell is:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set Target = Me.Range("E18")
If Target.Value > 50 Then
MsgBox "blah blah blah"
End If
End Sub
Any expert advice will be much appreciated!
I have a group of cells on sheetA which contain SUMFIS formulas connected to sheetB. Amounts are posted on sheetB and then the sums are calculated on sheetA.
I have conditional formats set on the sums on sheetA to go red once the sums exceed a maximum amount. However, I also want to add a ONE TIME message box to show up once the maximum sum is surpassed. I have been able to use an If statement within VBA to show once the max amount is exceeded, but then it just keeps popping up.
I'm new to VBA, so I'm not sure how to correct.
My code for one specific cell is:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set Target = Me.Range("E18")
If Target.Value > 50 Then
MsgBox "blah blah blah"
End If
End Sub
Any expert advice will be much appreciated!