Solved

get word document version

Posted on 2002-03-03
3
250 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 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