Hi,
Can you tell me what is wrong with the below? I am trying to remove the far right character from the values in any cell in the range, but it keeps saying i have an invalid proceedure call or argument at:R.Value = Left(R.Value, l)
Thanks
Sub shorten()
Dim R As Range
Dim l As Integer
For Each R In Range("A1:a300")
l = Len(R.Value) - 1
R.Value = Left(R.Value, l)
Next R
End Sub
Can you tell me what is wrong with the below? I am trying to remove the far right character from the values in any cell in the range, but it keeps saying i have an invalid proceedure call or argument at:R.Value = Left(R.Value, l)
Thanks
Sub shorten()
Dim R As Range
Dim l As Integer
For Each R In Range("A1:a300")
l = Len(R.Value) - 1
R.Value = Left(R.Value, l)
Next R
End Sub