rajsidhu
New Member
- Joined
- Mar 8, 2022
- Messages
- 7
- Office Version
- 365
- 2019
- Platform
- Windows
I read a post in this forum that shows how to make multiple text lines, in 1 cell, into bullet points which works great. Here is the code:-
What i need to do is create an unordered list out of these bullet points.
Is there any one who can help me modify the above code so that it spits out an unordered list of bullet points please?
VBA Code:
Sub aTest()
Dim rCell As Range, spl As Variant, i As Long
For Each rCell In Selection
spl = Split(rCell, Chr(10))
For i = LBound(spl) To UBound(spl)
spl(i) = Chr(60) & "li" & Chr(62) & spl(i) & Chr(60) & "/li" & Chr(62)
Next i
rCell = Join(spl, Chr(10))
Next rCell
Selection.ColumnWidth = 200
Selection.EntireRow.AutoFit
Selection.EntireColumn.AutoFit
End Sub
What i need to do is create an unordered list out of these bullet points.
Is there any one who can help me modify the above code so that it spits out an unordered list of bullet points please?