I have this macro that adds numbers (1,2,3) to words in cells.
The cells are not going to be in alphabetical order.
How can it be adapted to add letters instead?
Sub AddNumbers()
Dim i As Integer
For i = 1 To Selection.Rows.Count
Selection.Cells(i, 1) = Format(i, "00") & ". " & Selection.Cells(i, 1)
Next
End Sub
Tom
****
Harry
would turn into
A. Tom
B. ****
C. Harry
The cells are not going to be in alphabetical order.
How can it be adapted to add letters instead?
Sub AddNumbers()
Dim i As Integer
For i = 1 To Selection.Rows.Count
Selection.Cells(i, 1) = Format(i, "00") & ". " & Selection.Cells(i, 1)
Next
End Sub
Tom
****
Harry
would turn into
A. Tom
B. ****
C. Harry