Determining where a style was created

K

Ken

If in Word 2000 you read a W2003 document, or insert paragraphs from a
W2003 document, styles generated in W2003 can be loaded. W2000 will
then ignore the W2003 only features in these styles. However if such a
style has numbering and an attempt is made in VBA to use any of the
Lists properties or methods then Word will crash.
What I want is a VBA routine that will look at a style and determine
what Word version created it. I can then avoid executing any List
methods if necessary. The only thing I can think of is to parse the
style description for such words as "Latin" or "Asian" that are
not W2000 features, but this approach has obvious disadvantages. Any
ideas?
 
J

Jezebel

Where the style was created is irrelevant: the style object is a function of
the version of Word you're using at the time. You'll get problems referring
to any W2003 feature in code running under W2000.
 
K

Ken

You make my point that I should not refer to W2003 features in W2000.
Therefore, my question is the same. How can I find out if a styles has
W2003 features.
 
K

Klaus Linke

Don't know... but unless you find something better, you might check if the
save format is docx (ActiveDocument.SaveFormat=13)?

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