Solved

get word document version

Posted on 2002-03-03
3
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

617 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