Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-26-2011, 10:29 PM
macropod's Avatar
macropod macropod is offline Office 2010 Template Loses Its Filename On Open Windows 7 32bit Office 2010 Template Loses Its Filename On Open Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi MYGS,

That is how Word templates work.

If you add the following code to your template, it will prompt the user to save immediately a new file is created, using the template's name. From then on, the document can be edited & saved as per normal.
Code:
Private Sub Document_New()
With Dialogs(wdDialogFileSaveAs)
  .Name = Split(ThisDocument.AttachedTemplate.Name, ".")(0)
  .Show
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing word/excel from trying to open external template locations Perhill Office 0 03-02-2011 04:44 AM
Office 2010 Template Loses Its Filename On Open From Office '03 to '10 - where is the Excel filename ??? TL86 Excel 4 02-21-2011 08:08 AM
Upgraded from Office 2007 to Office 2010, now can't open Outlook MDuff Outlook 2 01-27-2011 01:06 PM
License Office Standard 2010 and Home and business 2010 papypaul2 Office 0 11-05-2010 08:55 AM
Macro to open template not working Brandi Mail Merge 2 06-24-2010 09:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:56 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