Access to special Word document properties?


After a hard drive crash, I have been left with 1000s of MS Word 2000 documents with numbers for filenames. To save a huge amount of time sorting these, I would like to write a VB program that will look at the documents, and then rename them to either the "Title" or the "Author" property values which are stored in many Word documents (The ones you see when you click on Properties under the file menu).

Is there any way I can read these from VB? I know how to open the document and select text etc, but I can't find anything on these properties. I also know I can use "WordObject.Name" to get the filename, but that doesn't help much when they are just  random numbers.

Any help would be greatly appreciated!

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you could try this

title : Dsofile.exe Lets You Edit Office Document Properties from Visual Basic and ASP
source :;EN-US;Q224351&

Dsofile.exe is a self-extracting executable that provides a simple in-process ActiveX component for programmers to use in order to read and modify the Document Summary Properties for an OLE Structured Storage file such as native Excel, PowerPoint, Microsoft Visio, and Word documents without using Automation to Microsoft Office. The component can also work on non-OLE documents when it is run on Windows 2000 with an NTFS file system.

hope this helps a bit

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dirk HaestProject managerCommented:
Just listening
camesAuthor Commented:
That worked perfectly! Many thanks, bruintje, I would never have found that file!
Is that what your want

where wdapp is word.application

wdapp.Documents.Item(1).BuiltInDocumentProperties("Title").Value = "YYYYY"
wdapp.Documents.Item(1).BuiltInDocumentProperties("Author").Value = "Yourname"
thanks it is easier when you know what to look for :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.