kevin440red
New Member
- Joined
- May 23, 2011
- Messages
- 26
- Office Version
- 2019
I have this VAB that removes the first character it work well but I need to edit it to where it only removes the first character only if its a letter.
It is set to range.
It is set to range.
VBA Code:
Sub RemoveFirstThreeCharactersInEachCell()
For Each cell In Range("b6", Range("b1500").End(xlUp))
If Not IsEmpty(cell) Then
cell.Value = Right(cell, Len(cell) - 1)
End If
Next cell
For Each cell In Range("c6", Range("c1500").End(xlUp))
If Not IsEmpty(cell) Then
cell.Value = Right(cell, Len(cell) - 1)
End If
Next cell
For Each cell In Range("d6", Range("d1500").End(xlUp))
If Not IsEmpty(cell) Then
cell.Value = Right(cell, Len(cell) - 1)
End If
Next cell
For Each cell In Range("e6", Range("e1500").End(xlUp))
If Not IsEmpty(cell) Then
cell.Value = Right(cell, Len(cell) - 1)
End If
Next cell
Columns("A:E").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub