Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 05-05-2011, 01:09 AM
macropod's Avatar
macropod macropod is offline Word 2003 > close > it asks to save a global template Windows 7 32bit Word 2003 > close > it asks to save a global template Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 Tom,

It seems to me you're not so much using this template to distribute macros as to create an altenative way of creating a new document based on a template. You could probably achieve much the same result using something based on:
Application.Dialogs(wdDialogFileNew).Show
from the users' Normal.dot(m) template.

Be that as it may, it might be useful if you can track down the point at which your global template's state is changing to unsaved. Here's some code to try:
Code:
Sub Test()
Dim Doc As Document
For Each Doc In Documents
  MsgBox Doc.AttachedTemplate.Name & vbTab & Doc.AttachedTemplate.Saved
Next
Dim Tmplt As Template
For Each Tmplt In Templates
  MsgBox Tmplt.Name & vbTab & Tmplt.Saved
Next
End Sub
If you load your template, then run the macro, it should tell you whether anything might need saving. If you then create a new document based on one of the other templates called by the code in your global template, and run the code again, it should tell you whether the global template's status has changed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2003 > close > it asks to save a global template Word 2003 slow to open/close HAWJOHN Word 1 04-05-2011 06:47 AM
Word 2003 > close > it asks to save a global template Global template ryalls3857 Word 1 12-27-2010 05:45 PM
2003 word template help??? gawd89108 Word 1 03-08-2010 05:58 PM
Word 2003: Do you want to save changes always popping up aedwards Word 0 02-23-2006 02:14 PM
Word 2003 > close > it asks to save a global template Suppress "do you want to save?" dialog on close rnstewart Excel 2 12-28-2005 04:30 PM

Other Forums: Access Forums

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