template keeps locked very strange?

B

buttie

Hello,
I have a macro in a dot file that runs when I open a document with that
network template (g:\wmv\r6.dot) attached. The dot file is on a network and
I want to copy it local so the network template isn't locked when a user has
a doc open with that template attached, so it can be changed. It works fine
and the local template is attached. But the network template keeps locked
with a tilde (~) before it so the doc keeps two templates locked, the local
(as expected) and the network template. Is there a way to release the "
ghost" attached network template?
Below a example of the code:

Sub AutoOpen()
WordBasic.CopyFileA FileName:="G:\WMV\r6.dot",Directory:="c:\temp\r6.dot"
ActiveDocument.AttachedTemplate = "c:\temp\r6.dot"
End Sub

Thanks a lot
 
B

buttie

Sorry, i forget to say that when I look at the name of the attached template
in the wordmenu in attached templates and press cancel that the lock is
disappeared and when I record that action in a macro the lock stays, maybe
that makes something clear.
Thanks
 

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