How do I search for a bulleted list?

M

marcyw

I need to search for bulleted list items in a document, and replace them with
a specialized style. The items currently have no unique formatting or styles
attached to them. Is there some way to search for "bulleted list"?
 
J

Jay Freedman

marcyw said:
I need to search for bulleted list items in a document, and replace
them with a specialized style. The items currently have no unique
formatting or styles attached to them. Is there some way to search
for "bulleted list"?

If they don't have a "unique formatting or style", then what makes them
"bulleted list items"? Is there some specific character at the beginning of
the item's paragraph? Something else? When you can answer that question,
then search for that condition. If you don't know how to do that, come back
here and explain what you need to look for.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
H

Helmut Weber

Hi,

maybe you're looking for somthing like this:

Sub Test4567890()
Dim oPRg As Paragraph
For Each oPRg In ActiveDocument.Range.Paragraphs
If oPRg.Range.ListFormat.ListType = wdListBullet Then
oPRg.Range.Select
Stop ' your code
End If
Next
End Sub

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top