Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

get word document version

I want to get the version of a word document.
my problem is when i use this code below:

dim AppName as string
AppName = a.Documents(1).BuiltInDocumentProperties(wdPropertyAppName)

it only returns the current version of the installed word.
for example, if i have word document, version 8.0, and word application install on my machine, version 9.0, this code will return => Microsoft Word 9.0
0
mahabula
Asked:
mahabula
1 Solution
 
iboutchkineCommented:
In this line
AppName = a.Documents(1).BuiltInDocumentProperties(wdPropertyAppName)

a - is an object which is defined by referencing Microsoft Word Library 8 or 9. You cannot set reference to the both libraries and that is why you already know the version of the word that you are using. It is impossible to refer to the different Word version.
0
 
guidwayCommented:
This question appears to have been abandoned. A Moderator will be asked to
close this question after seven days, with the following recommended
disposition:

Points to iboutchkine

If you have any comment or objection to the recommendation, please leave it here.

guidway
EE Cleanup Volunteer
0
 
NetminderCommented:
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now