Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Determining where a style was created

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken - 23 Oct 2006 23:25 GMT
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?
Jezebel - 23 Oct 2006 23:39 GMT
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.

> 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
[quoted text clipped - 7 lines]
> not W2000 features, but this approach has obvious disadvantages. Any
> ideas?
Ken - 24 Oct 2006 04:24 GMT
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.

> 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
[quoted text clipped - 11 lines]
> > not W2000 features, but this approach has obvious disadvantages. Any
> > ideas?
Klaus Linke - 25 Oct 2006 01:43 GMT
Don't know... but unless you find something better, you might check if the
save format is docx (ActiveDocument.SaveFormat=13)?

Klaus

> 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
[quoted text clipped - 17 lines]
>> > not W2000 features, but this approach has obvious disadvantages. Any
>> > ideas?
Jezebel - 25 Oct 2006 05:42 GMT
If you're using W2000, it hasn't. If you're using W2003, it has.

> 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
[quoted text clipped - 17 lines]
>> > not W2000 features, but this approach has obvious disadvantages. Any
>> > ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.