Hello
I want to know which is the simple vba code to color last word from a range of cells.[TABLE="class: text_table, width: 500"]
<tbody style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; vertical-align: baseline;">[TR]
[TD]1[/TD]
[TD]John cell phone //991612[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Maria cell phone //842246[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bill cell phone //892246[/TD]
[/TR]
</tbody>[/TABLE]
i Want to color only the numbers (last word in fact)
I have tried
Sub Color_Part_of_Cell()
'Print ActiveCell.Characters.Count
With Range("D3:D11").Characters(, 8).Font
.Color = RGB(36, 182, 36)
End With
End Sub
But this code colors the first letters
Thanks
I want to know which is the simple vba code to color last word from a range of cells.[TABLE="class: text_table, width: 500"]
<tbody style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; vertical-align: baseline;">[TR]
[TD]1[/TD]
[TD]John cell phone //991612[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Maria cell phone //842246[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bill cell phone //892246[/TD]
[/TR]
</tbody>[/TABLE]
i Want to color only the numbers (last word in fact)
I have tried
Sub Color_Part_of_Cell()
'Print ActiveCell.Characters.Count
With Range("D3:D11").Characters(, 8).Font
.Color = RGB(36, 182, 36)
End With
End Sub
But this code colors the first letters
Thanks