Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Mar 2003
    Elkins Park, Pennsylvania, USA
    Thanked 0 Times in 0 Posts

    Identifying Missing Add-In (Word XP)

    First, I would like to thank everyone for all the help they've given in the past. I hope someone can help me again.
    I have a little loop in a piece of code that is supposed to set a flag if a particular add-in is found. Here it is:

    For Each WPCTemplate In AddIns
    If UCase(WPCTemplate.Name) = "WPC.DOT" Then WPCAddInPresent = True

    (This is just a paraphrase, without a graceful "Exit For")

    The problem that sometimes comes up is that users may have an add-in listed, but not available (for example, if a particular drive-letter is not mapped, as just happened to me.) At those times, it seems there is no method or property I can use without kicking out an error when the loop hits that particular add-in.

    Other than trapping the particular error, is there any way I can find out anything about the offending non-existent object?
    <font face="Comic Sans MS">That's what you do in a herd; you look out for each other!</font face=comic> - Mike

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Silicon Valley, USA
    Thanked 94 Times in 90 Posts

    Re: Identifying Missing Add-In (Word XP)

    Can you use the Templates collection instead of the AddIns collection?

Posting Permissions

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