The following cell provides a pop up message when NO is entered in cell H5.
However when I try to expand it the these ranges H6:H10, H13:H17. I get a error message. Run time error 13. Type mismatch. I have even tried range H:H & received the same error. What am I doing wrong & how do I correct it.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("H5") = "No" Then
MsgBox "If there is pink in a previously filled cell, after checking No." & vbCrLf & _
"There is Scheduling conflict." & vbCrLf & _
"Choose another time or reschedule the first veteran" & vbCrLf & _
"Remember! New career Link Visits require 1 hour.", vbCritical, "Vocational Services Database - " & ActiveSheet.Name
End If
End Sub
However when I try to expand it the these ranges H6:H10, H13:H17. I get a error message. Run time error 13. Type mismatch. I have even tried range H:H & received the same error. What am I doing wrong & how do I correct it.