M
MKruer
This is the next item in my Word2Bbcode Macro. I need to take a window
list and convert it into the Bbcode equivalent. Right now it will
convert the bullet, and the numbers, but it convert the letters to
numbers as well. And I need to encapsulate all items in the list
between
list and convert it into the Bbcode equivalent. Right now it will
convert the bullet, and the numbers, but it convert the letters to
numbers as well. And I need to encapsulate all items in the list
between
- and [/list[ tags.
Once again any help would be appreciated.
Thanks
-Matt-
Examples and Correct equivalent BBCode
List Bullets
· One
· Two
· Three
List Bullets- One
- Two
- Three
List Numbers
1. One
2. Two
3. Three
List Numbers- One
- Two
- Three
List Letters
A. One
B. Two
C. Three
List Letters- One
- Two
- Three
Code:Private Sub ConvertLists() Dim para As Paragraph For Each para In ActiveDocument.ListParagraphs With para.Range For i = 1 To .ListFormat.ListLevelNumber If .ListFormat.ListType = wdListBullet Then .InsertBefore "[*]" ElseIf .ListFormat.ListType = wdOutlineNumbering Then .InsertBefore "[1]" Else .InsertBefore "[a]" End If Next i .ListFormat.RemoveNumbers End With Next para End Sub