Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create Global template (Word 2000/2/2003)

    Hi there
    I have created a template with macros and styles that I would like to have sent to a few users so that it becomes their global template.
    What coding can I use that when the user opens the template (sent vie e-mail), the code runs that will find the correct storage place on the users computer, saves it there, then closes the template?
    Regards

  2. #2
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Create Global template (Word 2000/2/2003)

    You'll have to excuse me here, but I have to say that that sounds remarkably like a description of the way a virus works - and could have a very similar effect!

    For instance, you do mean to give them an add-in global template, not replace their normal.dot, don't you? And this is to happen when -if! - they open the attachment, not as soon as the email is opened, isn't it? Because if, for instance, they are away and someone is covering their emails who does *not* want this template, that person could be extremely irate if they had it forced on them just for opening an email!

    Please, I would strongly suggest you find a different - and less dangerous! - way of distributing your new template!
    Beryl M


  3. #3
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Create Global template (Word 2000/2/2003)

    Phew! That is definitely not my intention.
    Modification - the user opens the document and then clicks a button to activate the saving of the document?
    There are styles and macros that need to be used across documents - hence my thinking.
    Alternatively I will have to repeat the styles and macros in many templates.
    Regards

  4. #4
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Create Global template (Word 2000/2/2003)

    Sorry, didn't mean to come on quite so heavy! <img src=/S/grin.gif border=0 alt=grin width=15 height=15> Yes, the modification would be fine, with suitable explanation in the email, of course! A two-part answer to your original question:

    - if you distribute this template as an add-in (as opposed to the normal.dot), saving it in the 'startup' folder for that user, it will behave in a very similar manner to the normal (ie macros etc be available globally as are the ones in normal) but creating a new 'blank document' would obviously not pick up the styles, they would still come from the normal.dot - the new doc would have to be based on your global template to pick those up.

    - if you want to add macros and styles and they *have* to be in the normal.dot it would be better to do just that - add the macros and styles to the existing normal, but NOT overwrite the whole template. You can use the Templates & Add-Ins Organiser (Tools > Templates & Add-ins > Organiser, in Word97) to copy the items across, and if you record yourself doing a sample copy you'll end up with a macro containing the code you need to set it up for the users.

    The line of code you need to get the startup folder's location is "Application.Options.DefaultFilePath(path:=wdStart upPath)" - you may need to set it if it's not been set up first.

    Good luck!
    Beryl M


  5. #5
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Create Global template (Word 2000/2/2003)

    Gotsha.
    Works just the way we want it - thanks again - no offence taken <grin>

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Create Global template (Word 2000/2/2003)

    Styles are best placed in the template users will use to create the document in the first place. Macros can be anywhere. What I do, assuming it is on a user-by-user basis, is create an installer template and a help document explaining how the macros work. After opening the help document, the user runs the install procedure in the installer template, and that procedure copies the global template to their startup folder. It's a bit complicated when files move from one server to another, getting everything lined up again, but it saves me so many headaches. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

Posting Permissions

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