Solved

Multiple COM Add-In buttons appearing

Posted on 2004-09-05
4
237 Views
Last Modified: 2013-11-25
Hi

I have written a COM Add-In for use with Word.  However every time I run Word a new button appears on the toolbar, even though I am explicitly deleting the button when I disconnect.  This means I end up with a row of identical buttons instead of just one.

The code for the disconnection is:

    MyButton.Delete
    Set MyButton = Nothing

which I took from http://support.microsoft.com/default.aspx?scid=kb;en-us;238228

0
Comment
Question by:lazydave_bbk
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Shauli earned 125 total points
ID: 11985178
This is a known bug. To work around use this link:

http://support.microsoft.com/default.aspx?scid=kb;en-us;230876

S
0
 

Author Comment

by:lazydave_bbk
ID: 11986217
I have searched high and low for this before posting - thanks a lot
0
 

Author Comment

by:lazydave_bbk
ID: 11986230
Just wondering, when MS say:

The information in this article applies to:
Microsoft Visual Basic Professional Edition for Windows 6.0
Microsoft Visual Basic Enterprise Edition for Windows 6.0
Microsoft Office Word 2003
Microsoft Word 2002
Microsoft Word 2000

Obviosly no COM Add Ins for 97 but, Does that mean OK with previous VB to VB 6 or known bug for all Word COM Add Ins?

Thanks again - life saver
0
 
LVL 19

Expert Comment

by:Shauli
ID: 11986530
Usually it does not. Usually it means what MS$ say it applies to. But in this case, I would expect this bug in previous version as well, although I don't have any experience with previous versions.

S
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now