Cutting last 10 charecters of a cell and pasting to next cell
Solved/Closed
BrianGreen
Posts
1005
Registration date
Saturday 17 January 2015
Status
Contributor
Last seen
30 September 2021
-
27 Jul 2015 à 09:18
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 28 Jul 2015 à 11:58
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 28 Jul 2015 à 11:58
Related:
- Cutting last 10 charecters of a cell and pasting to next cell
- How to delete a cell in word - Guide
- Excel multiple lines in one cell - Guide
- Activate cell - Excel Forum
- Root directory is full or error in pasting - Android Forum
- Best cell phone 2023 - Home - Buying guides
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
27 Jul 2015 à 11:18
27 Jul 2015 à 11:18
Hi Brian,
Welcome back!
See if the following code gets you the desired result:
Best regards,
Trowa
Ps. I totally agree with your signature. A shame one has to point that out!
Welcome back!
See if the following code gets you the desired result:
Sub RunMe()
Dim lRow As Integer
lRow = Range("D1").End(xlDown).Row
For Each cell In Range("D2:D" & lRow)
cell.Offset(0, 1).Value = Right(cell.Value, 10)
cell.Value = Left(cell.Value, Len(cell.Value) - 10)
Next cell
End Sub
Best regards,
Trowa
Ps. I totally agree with your signature. A shame one has to point that out!
27 Jul 2015 à 14:44
I wont be able to test this until tomorrow. I will let you know how it goes.
Thank you so much.
28 Jul 2015 à 11:51
Thanks Trowa - you're a star.
28 Jul 2015 à 11:58