Results 1 to 7 of 7
  1. #1
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Template Error in different directory (Word 2000)

    I created some macros. I put them in a template. I copy that templage to a different directory than ->application data->microsoft->templates. I received a security error when I accessed macros in the template and I could not get them to run. When I copied the themplate to the application data->microsoft->templates, I did not receive any error and everything worked fine.

    I want to know if it is possible to put templates to different directories or they have to be in application data->microsoft->templates. What can I do to run macros inside templates that are not in the default directory specified by microsoft?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Template Error in different directory (Word 2000)

    It sounds as though you have set your Macro Security setting to high. You have a number of choices to enable use of Macros...
    <UL><LI>Store your template in the templates folder and configure Macro Security to "Trust all installed add-ins and templates" (Tools > Macro > Security > Trusted Sources). This sounds like the method that you have found
    <LI>Change Macro security settings to Medium. (Tools > Macro > Security > Security Level). This will give you a dialog box each time you open the template, you will be able to choose whether to trust the template.
    <LI>Obtain a signing certificate and sign your Macros (VBE Editor > Digital Signature...). The first time anyone opens a template that you have signed they will be given an opportunity to add the signer as a trusted source (Tools > Macro > Security > Trusted Sources). This is the method that I prefer, but you may have to pay to get a certificate.[/list]StuartR

  3. #3
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Template Error in different directory (Word 2000)

    Do I have to do all that if I install the templage from one machine to another? Is it possible to do programatically?

  4. #4
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Template Error in different directory (Word 2000)

    I have found another way to make it work. I don't know if it is normal to do that. What I did, I went to tools>file locations, then change the user tempates to the directory where my template is. Without doing any extra thing, my macros inside that templage run without problem. Will that cause any problem in for other user's templage? Is that the proper way to do it? I can also change the workgroup template directory to refer to the directory where my template is. Doing so also works fine.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Template Error in different directory (Word 2000)

    You don't have to do "all that". You do have to do any one of the three things.

    Moving the word templates folder could cause problems if there are other installed templates. Why not just copy your template to the standard user templates folder?

    StuartR

  6. #6
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Template Error in different directory (Word 2000)

    I am working in an installation to install the templage to different machines. For each machine, some of them 98/2000/NT, I will not know where normal.dot is. For that reason, it is better to install the template to a default directory.

    Another thing I can do, I think it is possible to determine in word where normal.dot is installed. If I know that, I can copy the tempate to that directory. The problem is to figure that directory before installation.

    I also want to know if I can go to options>file locations and tell Word, I have my template in 2 different directory. For example, where "normal.dot" is and another one names "test"

  7. #7
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Template Error in different directory (Word 2000)

    You could try storing your template in the location pointed to by the "Workgroup Templates" option. By default this is blank, so you would need to modify it on each PC where you want to install your template.

    StuartR

Posting Permissions

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