Programming Compatibility

M

Mike Faulkner

Hello

Word: XP (Rollout of 2003 soon)
OS: Windows XP

I want to set a documents Tools|Options|Compatibility to what ever version
of Word a user is running.

Example:
if Application.version = "10.0" then
activedocument.compatibility = 2002
elseif Application.version = "11.0"
activedocument.compatibility = 2003
elseif Application.version = "12.0"
activedocument.compatibility = 2007
end if

Word's Recorder produces many lines for each version. I just want to
simplify the process. Any assistance would be greatly appreciated.

Regards
Mike
 
J

Jonathan West

Hi Mike,

I really would recommend you *don't* do this. The compatibility settings can
change things such as the way paragraph spacing is handled, and can
therefore comprehensively mess up the layout of existing documents if
applied unthinkingly.

What are you trying to achieve, and why?


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
M

Mike Faulkner

Jonathan

One of the functions of our Document Repair Tool changes a Document's
Compatibility to Word 2002. It has been run on over 3,000 documents without
complaint... so far.

Regards
Mike
 

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