Following snippet identifies a Bulleted List and Tags all Bullet List items and the Bulletted List as a whole
Sub Tag_Lists() Dim oBL As ListFormat Dim oList As List Dim oLI For Each oList In ActiveDocument.Lists If oList.Range.ListFormat.ListType = WdListType.wdListBullet Then For Each oLI In oList.ListParagraphs oLI.Range.InsertBefore "
- " oList.Range.InsertAfter "
No comments:
Post a Comment