Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2015, 09:03 AM
gc28 gc28 is offline Template Opening As Template Windows 7 64bit Template Opening As Template Office 2010 32bit
Novice
Template Opening As Template
 
Join Date: Jun 2015
Posts: 2
gc28 is on a distinguished road
Default Template Opening As Template

Hi guys I have recorded a macro of myself opening a template however when these are used the file opens as a template and not a document using that template so when anything is saved on this it will overwrite the template file.. any idea why?
Reply With Quote
  #2  
Old 06-17-2015, 10:20 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Template Opening As Template Windows 7 64bit Template Opening As Template Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 4,005
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

To create a new document based on a template, you need code such as the following:

Code:
Sub CreateNewDocBasedOnTemplate()
Documents.Add "full path to template here"
End Sub
If you are trying to create a new, blank document, you can leave out the full path and just use Documents.Add.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 06-17-2015, 01:09 PM
Charles Kenyon Charles Kenyon is offline Template Opening As Template Windows 8 Template Opening As Template Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,465
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Try recording a macro of you creating a new document based on the template.
Templates in Microsoft Word
Stefan has given you an idea of what the macro will look like.
Reply With Quote
Reply

Tags
2010, template



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Template Always Opening Hobbes Word 7 09-24-2014 11:00 PM
TOC not correct on opening a template Bluebell Word 7 02-05-2014 04:43 AM
Error message when opening any template spiff1116 Word 6 11-04-2013 04:44 PM
Template Opening As Template Automatic update of links in template - closing attached template without saving stefaan Word 2 11-02-2013 07:46 AM
Template "File In Use" when opening 2 documents based on the same template wendt Word 5 12-15-2009 12:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft