I want to write code that will automatically check cells in a range for
certain data input and give a message when certain data is entered.
I have this code and can call it from an IF function but would liike it to
automatically check the selected cell without having a column that references
each cell.
Sub GiveNotice()
Dim Msg As Variant
Msg = "If B170 make sure C/O is not 82xx. "
Msg = Msg & vbCrLf
Msg = Msg & "If 9998 make sure Function Code is correct. "
Msg = Msg & vbCrLf
Msg = Msg & "If 9999 make sure Function Code is 999. "
MsgBox (Msg)
End Sub
Function WarningNotice()
Call GiveNotice
End Function
--
Robert
Bookmarks