Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2003
    Location
    Seattle, Washington, USA
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading a template as global (Word 2003, SP3)

    I have a document open in Word, and want to run a macro that loads that document's template as a global template, do some other stuff, and then unload the template as global. Is this possible? I don't find a method or property either in the Template object or the Global object that does that.

    Thanks!

    Earl Morton

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Loading a template as global (Word 2003, SP3)

    You could use code like this:

    Dim tmp As AddIn
    ' Install template as add-in
    Set tmp = Application.AddIns.Add(ActiveDocument.AttachedTemp late.FullName, True)
    ' Do something with it
    MsgBox tmp.Name
    ' Remove add-in
    tmp.Delete

  3. #3
    New Lounger
    Join Date
    Nov 2003
    Location
    Seattle, Washington, USA
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Loading a template as global (Word 2003, SP3)

    Thanks, Hans! That is exactly what I needed--and I'd have never found it.

    Earl

Posting Permissions

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