Format all paragraphs except List Paragraphs

D

dvdastor

Hi all,

I'm sure there is a way to do it,but I am not versed well enough on
Lists to figure this out.

I am trying to format all paragraphs in my document with a certain
style, but If I come across a list paragraph, I would like to ignore it
and move on.

Bascially,

For Each p in ActiveDocument.Paragraphs
If p is not a member of ActiveDocument.ListParagraphs
Then
'perform formatting
Next para
 
E

Edward Thrashcort

For Each p in ActiveDocument.Paragraphs

p.Range.ListFormat.ListType = wdListNoNumbering
'Process paragraph
Else
'Ignore
End If

Next p


Eddie
 

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