benjinorth
New Member
- Joined
- Jul 25, 2016
- Messages
- 13
Hi All,
Having a slight issue, the code I have below works ok if I change each cell in column A individually, however if i try to copy and paste the Target Value over multiple cells in column A I get a run time error '13' type mismatch.
I've highlighted the code where it "debugs"
If any one has any suggestions I'd be very grateful.
Having a slight issue, the code I have below works ok if I change each cell in column A individually, however if i try to copy and paste the Target Value over multiple cells in column A I get a run time error '13' type mismatch.
I've highlighted the code where it "debugs"
If any one has any suggestions I'd be very grateful.
Code:
Sub worksheet_change(ByVal Target As Range)
Dim lastrow As Integer
lastrow = Range("A" & Rows.Count).End(xlUp).Row
If Not Intersect(Target, Range("A2:A" & lastrow)) Is Nothing Then
[COLOR=#ff0000] If Target.Value = "0) N/A - Client not eligible" Then[/COLOR]
Target.Offset(, 223) = vbNullString
Target.Offset(, 224) = vbNullString
Target.Offset(, 226) = vbNullString
Target.Offset(, 227) = vbNullString
Else
End If
End If
End Sub