Okay... here goes.
Press Alt - F11 to bring up the VBA editor.
In the Project box at the left hand side select:
Sheets(YourPRojectName) / Microsoft Excel Objects / This Workbook
and double click.
Paste in this code:
Code:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Range("B10").Value = 1 Then
Range("B10").Value = "Some other Value"
Range("B10").Select
MsgBox "Warning, Warning, Explosion Immminent", vbOKOnly + vbExclamation, "A helpful little box"
End If
End Sub
This will, every time a new cell is selcted, check the value of cell B10. If B10 is = 1 then it will be reset to the phrase "some other value", then selected, then a message box appears with my whimsical warning.
Under this configuration, you cannot leave the "bad" value in the cell. Is this what you wanted?
Obviously you need to replace B10, 1, and the messages as appropriate to your circumstance.
Philip