Solved

get word document version

Posted on 2002-03-03
3
242 Views
Last Modified: 2008-02-01
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
Comment
Question by:mahabula
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 250 total points
ID: 6862454
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
 
LVL 12

Expert Comment

by:guidway
ID: 7306273
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
 
LVL 5

Expert Comment

by:Netminder
ID: 7331641
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now