Work Add-In Cleanup

blabore

Well-known member
Joined
Jan 31, 2002
Messages
48
Location
Austin, TX
Ive created a Word add-in in using VB .Net and am having a little trouble "cleaning up" the add-in when it disconnects from Word. The add-in is pretty simple, it basically adds a custom CommandBar with some buttons. To cleanup the add-in, I call the delete method of the CommandBar during the OnBeginShutdown event. However, this always raises an exception (hresult 0x something), and the CommandBar doesnt actually get deleted. Another possibility is to create the CommandBar using Temporary=True. Anyone have any advice on whats the best approach. Thanks for any help you can give me.
 
Back
Top