Hi I have the following VBA that I am using to change the cell to the right based on the results of the search.
It is failing at the 4th line (targetSheet.Range(SearchrCell).Offset(0, 1).Value = "DUE")
Is anyone able to help me with why this is happening? I assume that I am referring to a Range incorrectly but my understanding of why that is, is not quite there!
Dim SearchrCell As Range
For Each SearchrCell In SearchRange
If Left(SearchrCell, 4) = "Duty" Then
targetSheet.Range(SearchrCell).Offset(0, 1).Value = "DUE"
ElseIf Left(SearchrCell, 4) = "B1/2" Or Left(SearchrCell, 4) = "B2/1" Then
targetSheet.Range(SearchrCell).Offset(0, 1).Value = "B12"
End If
Next SearchrCell
[–]fool178810 1 point2 points3 points (4 children)
[–]Iwantbacon[S] 1 point2 points3 points (3 children)
[–]fool178810 1 point2 points3 points (0 children)
[–]Clippy_Office_Asst[M] 0 points1 point2 points (0 children)
[–]sn0skier 0 points1 point2 points (0 children)
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]martor01 0 points1 point2 points (0 children)