Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

template keeps locked very strange?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
buttie - 16 Jan 2006 23:04 GMT
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
buttie - 16 Jan 2006 23:15 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.