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

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

Stefan
Tue Jan 22 05:40:51 PST 2008

"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


"Raj" wrote in message
news:4056e126-f20c-4c5e-81c2-f482d8ffb6d8@s8g2000prg.googlegroups.com...
> 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