Hi all - i'm wrestling with the following problem;- I have working code;-
But i need to modify this so that it can cope with cell.value of variable length and remove the last characer from the string something like;-
But his doesn't work - any suggestions please?
Code:
Dim cell As Range
Dim x As Integer
With ActiveSheet
For x = 116 To 147
For Each cell In .Range("M44:M75")
If Left(cell.Value, 3) = .Range("H" & x).Value Then
cell.ClearContents
cell.Interior.ColorIndex = xlNone
End If
Next cell
Next x
End With
Code:
If Left(cell.Value, len(cell.value-1)) = .Range("H" & x).Value Then