Link to home
Start Free TrialLog in
Avatar of cames
cames

asked on

Access to special Word document properties?

Hi,

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!

Chris
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dirk Haest
Just listening
Avatar of cames
cames

ASKER

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