Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Utah, USA
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Templates and macros

    Why does a template that contains macros have to be in the same directory as the files created from that template. I have files in other directories that were made with this template and their macros will not work.

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

    Re: Templates and macros

    The files do *not* have to be in the same directory as the template they're made from at all. But if you're having a problem accessing that template's macros, you probably need to re-attach or add the template to the file:

    Tools | Templates and Add-ins, then either Attach or Add the template file.

  3. #3
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Utah, USA
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Templates and macros

    The file created from the template is protected as is the template. After looking at some more files created from this template I found that there were files that still worked. Why would the link be broken on some and not all?

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Templates and macros

    One possible cause for this would be if you moved the template to another directory at some point.

    When new documents are created from a template, the template's path is stored in the document, and this is an absolute, not a relative path.
    So if you should later move the template's location, the documents will no longer "see" the template.

    Stephan's suggestion for reattaching the template is correct; if the documents are protected you may need to unprotect them temporarily in order to do this.

    Hope this helps.

  5. #5
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Utah, USA
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Templates and macros

    It does, thank you. I discovered that in order to attach the template to a non-functional document both need to be unprotected for this to take place. Thanks again

Posting Permissions

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