Yes, it *is* possible to do that, provided that the corruption in Normal has
not affected the styles in question.
Usually, the corruption in a template affects the bullets and numbering list
templates. If that is the case, Word will crash as soon as you attempt to
access the damaged list template.
You can easily copy styles from a template using the OrganiserCopy method.
However, if those styles have list templates attached, the list templates
will NOT be copied.
You can create a macro to copy the list template associated with a style,
copy the style using the organiser, then add the list template to the
document, then attach the added list template to the style you just copied.
We normally assign a name to the list template while it is in transit to
make it easier to find it when you add it to the new template.
Often, it is preferable to simply retrieve the properties you are interested
in from a list template, then re-create the list template in the new
template.
When working in VBA, you have to open the template as a document in order to
get OrganiserCopy to work.
What I am saying here is "Yes," this is possible. However, you need to be
very good at VBA to do this economically. I am happy to help you, but be
prepared for some long nights slaving over a hot compiler
Cheers
from said:
I'm trying to determine if it's possible to recover customized styles
from a corrupted Normal, using the Organizer. Unfortunately, I have no
idea on how to program a macro to simulate this.
--
Please respond only to the newsgroup to preserve the thread.
John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:
[email protected]