Solved

get word document version

Posted on 2002-03-03
3
245 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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