How to detach a reference

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

How to detach a reference

Post by ABabeNChrist »

I have a docm (wind) that seems to get a vba reference from a separate word template. When I move the docm to another device it doesn’t work. How do I separate from the template so it’s a standalone docm document?
Untitled.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78917
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How to detach a reference

Post by HansV »

Step 1: In the Visual Basic Editor, copy the modules and userforms from the template to the document, otherwise they won't be available.
You can simply drag and drop them in the Project Explorer pane shown in your screenshot.

Step 2: in Word itself, activate the Developer tab of the ribbon, then click Document Template.
You'll see the name of the template in the Document template box.
Change this to Normal, then click OK. This will break the link between the document and the template.
Best wishes,
Hans

ABabeNChrist
SilverLounger
Posts: 1868
Joined: 25 Jan 2010, 14:00
Location: Conroe, Texas

Re: How to detach a reference

Post by ABabeNChrist »

Thank you Hans :grin: