Microsoft KB Archive/307479

= Some COM add-ins are not listed in the COM Add-Ins dialog box in Word =

Article ID: 307479

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft Office Word 2007
 * Microsoft Office Word 2003
 * Microsoft Word 2002 Standard Edition

-



This article was previously published under Q307479



SYMPTOMS
The COM Add-Ins dialog box does not display all COM add-ins that are loaded in Microsoft Word. This is most easily seen when the Word in Works Suite Add-In is loaded but does not appear in this dialog box.

NOTE: To view the COM Add-Ins dialog box, you must add the COM Add-Ins button to a toolbar.

To do this in Microsoft Office Word 2003 or in Microsoft Word 2002, follow these steps:
 * 1) On the Tools menu, click Customize.
 * 2) Click the Commands tab, and then click Tools in the Categories list.
 * 3) In the Commands list, drag COM Add-Ins to the toolbar that you want.
 * 4) Click Close to close the Customize dialog box.

To do this in Microsoft Office Word 2007, follow these steps:
 * 1) Click the Microsoft Office Button, and then click Word Options.
 * 2) In the left pane, click Customize.
 * 3) In the right pane, click All Commands in the Choose commands from list.
 * 4) Click COM Add-ins, and then click Add to add this command to the Quick Access Toolbar.



CAUSE
Some COM add-ins, such as the Word in Works Suite Add-In, are loaded into Word at startup. However, they are loaded as machine-level add-ins (in the HKEY_LOCAL_MACHINE portion of the registry) rather than user-level add-ins. Therefore, they do not appear in the COM Add-Ins dialog box.



WORKAROUND
To work around this behavior, you can use the following macro to display a message box with all currently loaded COM add-ins.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

For more information about how to use the sample code in this article, click the following article number to view the article in the Microsoft Knowledge Base:

290140 How to run the sample code for the Office XP programs from Knowledge Base articles

Sub ListAddins

Dim MyAddin As COMAddIn Dim i As Integer, msg As String

For Each MyAddin In Application.COMAddIns msg = msg & MyAddin.Description & &quot; - &quot; & MyAddin.ProgID & vbCrLf Next

MsgBox msg

End Sub

Additional query words: prb WD2002 WD2003 WD2007

Keywords: kbprb KB307479

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.