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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just listening
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).Bu iltInDocum entPropert ies("Title ").Value = "YYYYY"
wdapp.Documents.Item(1).Bu iltInDocum entPropert ies("Autho r").Value = "Yourname"
where wdapp is word.application
wdapp.Documents.Item(1).Bu
wdapp.Documents.Item(1).Bu
thanks it is easier when you know what to look for :)