C
Carol McDowell
I have a directory of saved Word 97 files. These files
were created from a workgroup template that was password
protected for forms. The workgroup templates directory
has been moved to a different server. The old directory
and server no longer exists. Therefore, when I try to
open my saved files that have a workgroup template
attached, it takes Word a long time time to open them,
because the file path to the attached template no longer
exists (Tools-Templates and Add-ins-Document Template
field has the wrong file path).
So far, I figured out that after I opened one of these
files, I could run a macro like this:
Sub RemoveReference()
With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = ""
End With
End Sub
I then save the file and when I reopen it, it opens
immediately, since the old file path has been removed from
the Document Template field. However, I have about 100
files that have have the incorrect file path in the
Document Template Field. I don't want to have to open each
one to run the macro. How can a run a macro on an entire
folder of saved Word 97 files?
If this is the wrong approach, I would sincerely
appreciate being pointed in the right direction. Thank
you.
were created from a workgroup template that was password
protected for forms. The workgroup templates directory
has been moved to a different server. The old directory
and server no longer exists. Therefore, when I try to
open my saved files that have a workgroup template
attached, it takes Word a long time time to open them,
because the file path to the attached template no longer
exists (Tools-Templates and Add-ins-Document Template
field has the wrong file path).
So far, I figured out that after I opened one of these
files, I could run a macro like this:
Sub RemoveReference()
With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = ""
End With
End Sub
I then save the file and when I reopen it, it opens
immediately, since the old file path has been removed from
the Document Template field. However, I have about 100
files that have have the incorrect file path in the
Document Template Field. I don't want to have to open each
one to run the macro. How can a run a macro on an entire
folder of saved Word 97 files?
If this is the wrong approach, I would sincerely
appreciate being pointed in the right direction. Thank
you.