kstate1988
New Member
- Joined
- Jun 7, 2016
- Messages
- 9
What I need, is a macro that can look in Column D and add “/” and “R” to the existing 7 character text string.
Cell (2D) has what the end result should be for all cells in column D, once the macro runs.
<tbody>
[TD="colspan: 2"]Dealer Description
[/TD]
</tbody>
This is what I have at this time.
Sub arranges()
Dim str As String
str = ActiveCell.Value
ActiveCell.Value = Left(str, 3) & "/" & Mid(str, 4, 2) & "R" & Mid(str, 6, 2) _
End Sub
Any help you can provide would be greatly appreciated.
Cell (2D) has what the end result should be for all cells in column D, once the macro runs.
Matched | |||
235/65R16 | |||
2757018 | |||
2256016 | |||
2356016 | |||
2457017 | |||
2256016 |
<tbody>
[TD="colspan: 2"]Dealer Description
[/TD]
</tbody>
This is what I have at this time.
Sub arranges()
Dim str As String
str = ActiveCell.Value
ActiveCell.Value = Left(str, 3) & "/" & Mid(str, 4, 2) & "R" & Mid(str, 6, 2) _
End Sub
Any help you can provide would be greatly appreciated.