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

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

Re: Document Properties - vbscript by Jonathan

Jonathan
Tue Jan 17 07:14:29 CST 2006


"Andy M" <AndyM@discussions.microsoft.com> wrote in message
news:CDD42B63-3920-47B9-BD29-FCF49CAB000F@microsoft.com...
> Looking for a way to read document properties for a Word Document.
>
> In particular I want to be able to read the "revision number"
> --
> .


Getting access to the Document Properties of a Word file
http://www.word.mvps.org/FAQs/MacrosVBA/DSOFile.htm


--
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


Re: Document Properties - vbscript by AndyM

AndyM
Tue Jan 17 08:38:08 CST 2006

Jonathan

thanks for your reply..

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

regards

Andy
--
.


"Jonathan West" wrote:

>
> "Andy M" <AndyM@discussions.microsoft.com> wrote in message
> news:CDD42B63-3920-47B9-BD29-FCF49CAB000F@microsoft.com...
> > Looking for a way to read document properties for a Word Document.
> >
> > In particular I want to be able to read the "revision number"
> > --
> > .
>
>
> Getting access to the Document Properties of a Word file
> http://www.word.mvps.org/FAQs/MacrosVBA/DSOFile.htm
>
>
> --
> 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
>
>

Re: Document Properties - vbscript by Jonathan

Jonathan
Tue Jan 17 09:11:32 CST 2006


"Andy M" <AndyM@discussions.microsoft.com> wrote in message
news:EB68EF66-BE84-4F36-802D-AB2827EFBEFB@microsoft.com...
> 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/default.asp?url=/library/en-us/shellcc/platform/shell/reference/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