Char style

K

Karen Brooks

Does anyone know how to get rid of the char style from a template / do
permanently? And if so, is the removal safe
 
K

Klaus Linke

Karen Brooks said:
Does anyone know how to get rid of the char style from a template / doc
permanently? And if so, is the removal safe?

You mean "do I loose formatting?"

Cindy's macro links the Char style to a new paragraph style.
Else, if you delete the Char style, it could affect the formatting of
paragraphs in the linked paragraph style (mainly, change them to "Normal"
paragraph style, and change the formatting according to rules that I've
never understood).

I usually link the Char style to the Normal paragraph style:
ActiveDocument.Styles("Heading 2 Char").LinkStyle = _
ActiveDocument.Styles(wdStyleNormal)

This seems to work fine, too.

My macro turns the Char style into a regular (unlinked) character style, and
you can replace it with some other character style, or with manual
formatting, before you delete it.
With Cindy's macro, you'd still have a linked style, but one linked to a new
style that does not appear anywhere in the document.

In both cases, if you delete the (character/linked) style, text formatted in
that style revert to the Default Paragraph Font, and you loose any manual
formatting that might have been applied on top.

BTW, "Char Char" styles are paragraph styles, "Char Char Char" styles
character styles again, and so on.
In any case, I'd probably search for them and apply sensible styles, then
unlink them with one of the two macros, before I'd delete them.

Often, you see " Char" styles with a leading blank, and those seem
impossible to delete.
If you try, Word says that no style with that name exists.

You can either ignore them (and make sure that they are not applied), or
you'd have to rebuild the template, or remove the style by saving as XML or
RTF, and hand-editing out that style's definition.

Regards,
Klaus
 

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