Document Properties - vbscript

A

Andy M

Looking for a way to read document properties for a Word Document.

In particular I want to be able to read the "revision number"
 
A

Andy M

Jonathan

thanks for your reply..

do you have any vbscript to do this.... I am looking for a code example really

regards

Andy
 
J

Jonathan West

Andy M said:
Jonathan

thanks for your reply..

do you have any vbscript to do this.... I am looking for a code example
really

If you download dsofile from the Microsoft website, you will find that the
package includes both VB6 and VB.NET source for the sample app. It shouldn't
be that hard to adapt the VB6 code to VBScript.

Also, if you only want to read the built-in properties, and don't need
either to write any property or to access the custom properties, then you
can use the ExtendedProperty method of the ShellFolder object in
Shell32.dll.

Description and code samples here
http://msdn.microsoft.com/library/d...e/objects/shellfolderitem/shellfolderitem.asp

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top