rename word docs to their titles?

B

B J W

I had a disk corruption problem recently, but recovered almost all my
documents. Unfortunately, the recovery program (or its operator) chose to
recovery the documents with arbitrary, sequential names. So, I have a huge
folder, with names like Fil001.doc, Fil011.doc, etc.

The documents, of course, still have titles, in their properties.

Would their be a way to automate the process of opening and saving the
documents, using their titles in the filename?
 
J

Jonathan West

Hi BJW

B J W said:
I had a disk corruption problem recently, but recovered almost all my
documents. Unfortunately, the recovery program (or its operator) chose to
recovery the documents with arbitrary, sequential names. So, I have a huge
folder, with names like Fil001.doc, Fil011.doc, etc.

The documents, of course, still have titles, in their properties.

Would their be a way to automate the process of opening and saving the
documents, using their titles in the filename?

Yes, this is perfectly possible, but it will require a fair bit of VBA code

The following article will point you in the correct direction to start
with - it shows you how to get the titles of all the documents in a folder.
Once you have that, it is a relatively simple process to rename the files, -
though you'll have to guard against the possibility of duplicate titles in
the same folder.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top