Hi all,
I am trying to insert a vba code to allow a pop up message to appear if a value is entered into a reference cell. So far I can make this happen using
unfortunately once the reference cell (G18 in this instance) has a value the pop up appears every time anything additional is added anywhere in spreadsheet and if additional lines added above it it looses the reference.
How can I make it only activate once and stay pointing to the correct cell if lines are added or deleted?
Many thanks
P.S. I think I may have posted this in the wrong Forum if so I am sorry and i cannot work out how to delete it.
I am trying to insert a vba code to allow a pop up message to appear if a value is entered into a reference cell. So far I can make this happen using
Code:
Private Sub Worksheet_Calculate()
If Range("G18").Value > 0 Then MsgBox "required message here"
End Sub
unfortunately once the reference cell (G18 in this instance) has a value the pop up appears every time anything additional is added anywhere in spreadsheet and if additional lines added above it it looses the reference.
How can I make it only activate once and stay pointing to the correct cell if lines are added or deleted?
Many thanks
P.S. I think I may have posted this in the wrong Forum if so I am sorry and i cannot work out how to delete it.
Last edited: