View Single Post
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi Mark,

I
tried the following macro but it does pick them up.

The * wildcard won't work when searching a style name in a
document. You'd need to search each style, individually.

What you could perhaps do is use a For Each loop to check
the presence of the basic style and Char in each style's
name. Roughly, like this (untested)

For each styl in ActiveDocument.Styles
s = styl.LocalName
If Instr(s, "Char") 0 Then
If Instr(s, "Main text") 0 Then
'Find/Replace using s
End If
End If
Next

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)