How to find bullets with VBA

I'm working on a macro in which I want to find all paragraphs with bullets. There are different kinds of bullets in the document, the user has used different list templates. The document in questions has bullets in 5 different levels, so I can't specify a certain indent.

Is there a way to find all bullets? I need to do this because the margin in the template upon which the document is based, has been changed. Although everything else (margins, headers etc) is being updated according to the new template, the paragraphs with bullets remain on the same place. I need to locate every bullet and change the left indent for each of those paragraphs. Unfortunately, I can't use the find and replace method, because it's impossible to search for bullets. Any suggestions, anyone?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


This should be what you are looking for...

Sub FindBullets()
  Dim p As Paragraph
  For Each p In ActiveDocument.Paragraphs
    If p.Range.ListFormat.ListType = wdListBullet Then
      MsgBox "Found a bullet!"
    End If
  Next p
End Sub

Ture Magnusson
Karlstad, Sweden

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anvaldemAuthor Commented:
Great! You saved me many hours! Thankyou.

// Anette, Orebro, Sweden

Thanks for the points. I'm glad that I could help you!

It's nice to meet a neighbour here... I see that you work with Office/VBA consulting. Are you self-employed or do you work for another company? Do you have too much to do? Perhaps we could cooperate and help each other?

Ture Magnusson

Turedata AB
Alfens vag 37
653 45  Karlstad
070-626 09 11
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.