scotthannaford1973
Board Regular
- Joined
- Sep 27, 2017
- Messages
- 115
- Office Version
- 2010
- Platform
- Windows
Hi
I have a cell (D45) where if the value exceeds 12, a dialogue box appears when worksheet_deactivate. Works fine, but if the cell is not amended then the message box comes up every subsequent time there is worksheet_deactivate. Can I specify that the box appears a maximum number of times (twice) if the cell value is not changed and the warning is, therefore, ignored?
cheers!
Private Sub Worksheet_Deactivate()
If Range("D45").Value > "12" Then
MsgBox "You have a risk/issue (cell A45 on the QIA Worksheet) with a total score of 16 or greater - please consider escalating it to the Corporate Risk Register"
End If
End Sub
I have a cell (D45) where if the value exceeds 12, a dialogue box appears when worksheet_deactivate. Works fine, but if the cell is not amended then the message box comes up every subsequent time there is worksheet_deactivate. Can I specify that the box appears a maximum number of times (twice) if the cell value is not changed and the warning is, therefore, ignored?
cheers!
Private Sub Worksheet_Deactivate()
If Range("D45").Value > "12" Then
MsgBox "You have a risk/issue (cell A45 on the QIA Worksheet) with a total score of 16 or greater - please consider escalating it to the Corporate Risk Register"
End If
End Sub