madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hello all, i have created a macro to extract the data from A column except 1st word. But i could not find a way to delete those extracted data from A column. Please guide me to acheive that. Thank you.
My macro example.
My macro example.
VBA Code:
Sub DeLeft()
Dim i As Long, d As Long
Dim Cel As Range
Dim Rng As Range
Set Rng = Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each Cel In Rng
i = Len(Cel)
d = InStr(i, Cel, " ")
If Not d = 0 Then Cel.Offset(, 1).Value = Right(Cel, l - d)
Next Cel
End Sub