Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying 'save' messages

Status
Not open for further replies.

dar3n

Technical User
Nov 7, 2007
3
GB
Hi, I realise this has already been addressed somewhere, but bear with me..

I want to turn OFF the annoying reminders to save changes to templates etc.

I have to use numerous templates that are then 'Saved As', but every time I go to close file, I get the message to save to template / master etc.

Please help before this computer takes flight...
 
In Word it's Tools|Options|Save properties; in Access it's Tools|Options|Edit/Find. Not sure about other Office products, but you get the idea....

Always remember that you're unique. Just like everyone else.
 
I have to agree with Mintjulep : "It sounds as if you are not using templates correctly."

Please describe exactly what you are doing, and what happens.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
The templates are at work.
The main drive is via a network.
The templates are used for completing documents and then 'saved as' the relevent ref number to a specific folder...this isnt a problem, the prob is when the .doc has been 'saved as'...and it is closed there are two prompts asking if changes to the template need to be saved and then if the master needs saving....i have searched everywhere but cant find what ever it is to stop these prompts...only does it in Word templates.
 
Hi,
in documents which are created from a template with a complex system of styles (depending on other styles), but relatively simple formatting (two frames in header on first page, only page- and if-fields in the other headers and footers) I am prompted to save the template. I am absolutely sure that no style has "add to template" ticked, I even ran a macro over the template's styles with a for-each-loop to ensure this.
This behaviour is very annoying because I use my template for writing long documents which have to be saved often.
I searched a lot why this message might appear but did not find any hint. Thus I wrote this little macro
Code:
'
Sub TemplateShutUp()
'in manchen stark angepaßten Dots (z.B. Bf-MH97.dot) kommt immer wieder _
die Meldung, ob Änderungen in der DokVorlage gespeichert werden sollen. _
Die nervt, wenn man am Formulieren ist. Daher dieser Kleinzeiler.
Dim msg$      'Meldungstext
  With ActiveDocument.AttachedTemplate
    msg = .FullName
    .Saved = True
  End With 'ActiveDocument.AttachedTemplate
  Application.StatusBar = "  Dokumentvorlage '" & msg & "' zum Schweigen gebracht ..."
End Sub   'TemplateShutUp

I like to see what my macros do and I like to be able to understand later why I wrote which code. That is why you can easily shorten the above macro to this one-liner:
Code:
Sub TemplateShutUp
  ActiveDocument.AttachedTemplate.Saved=Tue
End Sub

Markus.

I put the macro in the menu bar and used the black billard ball as icon which I consider appropriate for this.
 
Bluntly put...it really does sound like you are not using templates properly.

Templates should be cloned, using File > New. This creates a new document, based on the template file.

This document - whether you use File > Save; the Save button; File > SaveAs - is, it is true, saved with the Save As dialog.

However, if you have not made structural changes - attributes that are structural to the template - that is, in particular, NO manual format changes (which should not be done anyway), then you do not get the message.

So, how are you making the documents. File > New?

faq219-2884

Gerry
My paintings and sculpture
 
I agree with everybody else but exactly what do you mean when you talk about a template and a master as different entities - what are you doing and what is your master?

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
fumei: That's exactly what I do.

I have a template for my letters called Bf-MH97. As described, there is nothing special to it. When I write a new letter in ThisDocument a macro is triggered:
Code:
'***  Modul ThisDocument in Bf-MH97.dot *** MH 04.01.2005
'
Option Explicit
'
Private Sub Document_Close()  'MH 30.12.03
'setzt den Titel des Word-Fensters zurück
  If Documents.Count = 1 Then Application.Caption = ""
End Sub
'
Private Sub Document_New()  'MH 30.12.03
'Titel des Word-Fensters löschen, damit im Icon _
der Taskleiste mehr vom Dateinamen sichtbar wird; _
ehem. AutoNew-Makro aufrufen
  Application.Caption = " "
  modLetterMacros.FormerAutoNew
End Sub
'
Private Sub Document_Open()  'MH 30.12.03
'Titel des Word-Fensters löschen, damit im Icon _
der Taskleiste mehr vom Dateinamen sichtbar wird; _
ehem. AutoOpen-Makro aufrufen
  If Documents.Count = 1 Then Application.Caption = " "
  modLetterMacros.FormerAutoOpen
End Sub

The macros are on a module 'modLetterMacros' and are called FormerAuto.. because this template was created under Winword6 as Bf-MH6. For Bf-MH97 I replaced all the WordBasic instructions with VBA.
The macros - they are so simple - just do the following:
- both of them
a) adjust view of the document (ActiveDocument.View)
- FormerAutoNew only
b) my cell phone number is already in the text and has a bookmark on it; macro asks whether cell phone number should be shown, if not, deletes the text
c) the place where the address goes is marked by the word ADDRESS formatted as hidden text with a character style; macro looks for this character style, puts SELECTION.TEXT in a string variable and displays a msgBox asking whether I want to put the address here.
If so, selection is deleted and format resetted to paragraph format.
If not, everything stays as it was (because of the hidden character format it doesn't matter whether you put address in or not).
Nothing else is done.

My template runs in Word97 under Windows98 (why I have to shorten Application.Caption). The odd behaviour started suddenly about one year after the template was converted from WW6. And it is only with this peticular (no, peculiar) template. BTW: every formatting is done with styles. That is why I said, my styles were complex. And: of course I had Kaspersky search for viruses. No avail.

Thank you for your interest.

Markus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top