Thread: warning message
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Allan Allan is offline
external usenet poster
 
Posts: 57
Default warning message

HI, I want to display a warning message in column J whenever the number
exceeds 2.

At the moment I got something like this....

Dim ErrorMSG As String

If Application.CountIf(Worksheets("Sheet1").Columns(" J"), "2") Then

ErrorMSG = MsgBox("Warning.")

End If

Do i need to put this in the public sub function()...I am not too sure about
the full code .

thanks