Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Dec 2000
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disabling prompt to save attached template

    I have some lines of code in an template which toggles the caption in a custom menubar item.

    Apparently, when this command is used in a document based on this template, Word will also prompt the user to save changes to the template when the document is being closed.

    I want to supress this prompt. Even though the menu captions might be changed, thereby changing the template, I don't want changes the template saved and I don't want the user prompted.

    To handle this for a document object, I would simply write:
    .Close SaveChanges:=wdDoNotSaveChanges

    but how do you handle this for an Attached Template that you don't want saved?

    Thanks,

    Stephan Ip

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Disabling prompt to save attached template

    Have you tried
    ActiveDocument.AttachedTemplate.Saved = True
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    Star Lounger
    Join Date
    Dec 2000
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disabling prompt to save attached template

    Absolutely brilliant. Thank you.

    Stephan Ip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •