Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Document Properties - vbscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy M - 17 Jan 2006 13:09 GMT
Looking for a way to read document properties for a Word Document.

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

.

Jonathan West - 17 Jan 2006 13:14 GMT
> 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

Signature

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 

Andy M - 17 Jan 2006 14:38 GMT
Jonathan

thanks for your reply..

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

regards

Andy
Signature

.

> > 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
Jonathan West - 17 Jan 2006 15:11 GMT
> 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/platfor
m/shell/reference/objects/shellfolderitem/shellfolderitem.asp


Signature

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 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.