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?
How to detach a reference
-
- SilverLounger
- Posts: 1868
- Joined: 25 Jan 2010, 14:00
- Location: Conroe, Texas
How to detach a reference
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78920
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: How to detach a reference
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.
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
Hans
-
- SilverLounger
- Posts: 1868
- Joined: 25 Jan 2010, 14:00
- Location: Conroe, Texas
Re: How to detach a reference
Thank you Hans