I need a VBA code that add MS- to first of cell and delete the 3 first of numbers like :
12345678 = MS-45678
87452168 = MS-52168
1234567 = MS-4567
123456 = MS-456
12345 = MS-45
Please help me .
I need a VBA code that add MS- to first of cell and delete the 3 first of numbers like :
12345678 = MS-45678
87452168 = MS-52168
1234567 = MS-4567
123456 = MS-456
12345 = MS-45
Please help me .
[VBA]
For Each cell In Range("A1:A5")
cell.Value="MS-" & Right$(cell.Value, Len(Cell.Value) - 3)
Next cell[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Thank you very much for your help .