ms word - Documents.Add results in template being locked -
i have macro creates new document based on template stored on network share. macro stored in each user's word\startup folder file "macros.dotm" , executed button added toolbar.
the template file gets locked macro code executed , stays locked long derivative document still open user.
it has no impact on ability open new documents based on macro, if want edit template, have ask them close word (and hope nobody else goes it).
macro code:
documents.add template:="f:\templates\letterhead.dotm", newtemplate:=false, documenttype:=0`
the issue template on network drive - pretty common issue. 1 way around have calling template copy on template locally first , create new doc based off of (and delete template when done).
Comments
Post a Comment