Problem modifying document with two similar styles: "1.1.1 Heading3"and "1.1.1 Heading3 + Auto"

R

Raj

The document has two styles: "1.1.1 Heading3" and "1.1.1 Heading3 +
Auto"

When I modify the font color of Heading 3 Style using vba, only one
of the Heading3 styles viz. "1.1.1 Heading3" ie. the one without the
"+Auto" gets modified. The "1.1.1 Heading3 + Auto" remains unchanged.

I tried to replace "1.1.1 Heading3 + Auto" with "1.1.1 Heading3" using
Find and Replace Dialog Box. But the "Find in Style" box does not list
the "1.1.1 Heading3 + Auto" style.

Also, when I try Format-->Style--> Modify-->, the "1.1.1 Heading3 +
Auto" does not appear in the "Pick Formatting to apply" box where all
styles are listed: only the "1.1.1 Heading3" is listed.

Basically, I have to get rid of the "+Auto" in the style. (How did the
+Auto come in the first place? : when I hold the mouse over the style,
it says Font Color: Auto). I am working on a fairly long document and
need to automate the task with vba

Please help.

Thanks in Advance,
Raj
 
S

Stefan Blom

"1.1.1 Heading 3 + Auto" is not a style, but a style plus direct formatting.
To hide this from view, clear the option to "Keep track of formatting" in
Tools | Options, Edit tab.

To get rid of direct paragraph formatting, select the text and press Ctrl+Q.
And to get rid of direct font formatting, press Ctrl+SpaceBar.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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