replace DOT with new path in many files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have hundreds of .doc files on the server that are referencing old UNC
paths. This is causing the files to load quite slowly as the path no longer
exists. Is there a way to alter the paths across all the files rather than
doing it manually?

Any suggestions would help.

Thanks!

Jason
 
I was able to get the document properties to display using that tutorial
however how would I go about going into the file and changing the dot file if
it has an incorrect UNC path?

Thanks again

Jason
 
I ran the macro's you suggested however they replace text within the document
but doesn't alter its properties. I attempted to add the following but it
does not work.

Set myDoc = Documents.Open(PathToUse & myFile)
myDoc.BuiltInDocumentProperties(wdPropertyTemplate) = ""

I used the code from http://www.gmayor.com/batch_replace.htm

Thanks again

Jason
 
I suggest you post your question in one of the word.vba NGs, where you will
find more users who will be able to help you adapt these macros.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top