Version

S

Scafidel

Using Access 2007 with a form that merges fields to various Word 2007
documents using code which includes:

Const conTEMPLATE_NAME = "C:\FORMS\Spec1.dotm"

This is shared with other employees but occassionally someone doesn't have
Word 2007. In the form folder that's copied to their machine are templates
named both *.dotm and *.dot, but I'm having to go in the computer to change
the code from *.dotm to *.dot templates.

Question: What code would find Word version, i.e., If V2007 then pull up
dotm, else use dot?

Thanks
 
A

Arvin Meyer [MVP]

I believe that if you have a reference set to Word from Access, you should
be able to get the version returned with:

Word.Application.Version

You may want to ask this in a Word newsgroup as well.
 
L

Larry Daugherty

A better place to post Word issues is in a newsgroup devoted to Word.
Some folks there will likely have that info handy.

HTH
 

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