Hello All,
Here is my code i'm having issues with:
The issues i'm having is with Cell(Target, "A") and then Cell.CountA. With this situation with any changes made between column K and V. It first checks to see if column A says "PUB", if it does then it counts all the filled cells between K and V. If the count comes to 12 then the message box appears. Otherwise nothing happens. I have been debugging and the red is what is giving me errors. How do i fix it so it check column A and then counts cells between K and V. Thank you for any assistance that you can provide.
Here is my code i'm having issues with:
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Set R = Intersect(Target, Range("K:Y"))
If Not R Is Nothing Then
For Each Cell In R
If Cell.Value <> "" Then
If Cell(Target, "A") = "PUB" Then
If Cell.CountA("K:V") = 12 Then
MsgBox ("NOC Items Completed")
End If
End If
End If
Next Cell
End If
End Sub
The issues i'm having is with Cell(Target, "A") and then Cell.CountA. With this situation with any changes made between column K and V. It first checks to see if column A says "PUB", if it does then it counts all the filled cells between K and V. If the count comes to 12 then the message box appears. Otherwise nothing happens. I have been debugging and the red is what is giving me errors. How do i fix it so it check column A and then counts cells between K and V. Thank you for any assistance that you can provide.