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
 
Top