Home

ADD IN TROUBLE

%3CLINGO-SUB%20id%3D%22lingo-sub-754597%22%20slang%3D%22en-US%22%3EADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754597%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20problem%20with%20an%20addin%20that%20I%20developed%20myself%20and%20have%20been%20using%20it%20for%20about%206%20months.%20I%20just%20upgraded%20to%20MS%20Office%202019.%20With%20one%20particular%20workbook%2C%20this%20addin%20seems%20to%20cause%20a%20problem%2C%20in%20that%20the%20workbook%20opens%20briefly%20and%20shuts%20down.%20However%2C%20if%20I%20remove%20reference%20to%20the%20addin%2C%20open%20the%20workbook%2C%20add%20the%20reference%20for%20the%20addin%20back%2C%20lo%20and%20behold%2C%20the%20full%20functionality%20is%20there.%20However%20if%20I%20saved%20this%20workbook%20with%20the%20addin%20referenced%20in%20and%20then%20open%2C%20it%20does%20not%20work.%20So%20right%20now%20I%20am%20working%20this%20workaround%20by%20removing%20the%20addin%20reference%20and%20save%20and%20add%20it%20back%20when%20I%20need.%20Any%20thoughts%2C%20ideas%3F%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3ERaliR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-754597%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754619%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754619%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F376408%22%20target%3D%22_blank%22%3E%40RALI-R%3C%2FA%3EI%20would%20suggest%20to%20add%20breakpoints%20in%20your%20code%20and%20step%20through%20it%20to%20see%20what%20part%20of%20the%20code%20causes%20the%20shutdown.%20Without%20your%20add-in%20and%20workbook%2C%20this%20is%20impossible%20to%20troubeshoot%20for%20us%20I'm%20afraid.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754761%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754761%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%2C%20Jan.%20Even%20just%20opening%20the%20workbook%20with%20reference%20to%20this%20add%20in%20caused%20it%20to%20open%20and%20close.%20But%20after%20your%20note%2C%20I%20added%20a%20subroutine%20to%20workbooks_open%20with%20a%20stop%20at%20the%20very%20first%20line.%20No%20go.%20Same%20thing%20happens.%3C%2FP%3E%3CP%3EI%20have%20been%20trying%20various%20tricks%20I%20can%20think%20of%20since%20I%20installed%20Office%202019%20about%205%20days%20ago.%20The%20same%20addin%20works%20fine%20with%20a%20couple%20of%20other%20workbooks%20without%20any%20issues.%20I%20tried%20renaming%20it%2C%20but%20no%20dice.%20At%20this%20point%2C%20I%20am%20out%20of%20ideas%20and%20looking%20for%20workarounds.%20The%20next%20step%20in%20my%20workaround%20is%20to%20see%20if%20I%20can%20programmatically%20add%20and%20remove%20addins.%3C%2FP%3E%3CP%3EWhat%20really%20baffles%20me%20is%20that%20the%20addin%20works%20fine%20even%20with%20this%20workbook%20if%20I%20add%20the%20reference%20after%20I%20open%20the%20workbook.%20I%20am%20open%20to%20any%20suggestions%20you%20have%20or%20anybody%20else%20has.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3ERaliR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754807%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754807%22%20slang%3D%22en-US%22%3EDoes%20opening%20the%20file%20run%20anything%20in%20the%20referenced%20add-in%20by%20any%20chance%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754888%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754888%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes.%20Indeed.%20That's%20why%20my%20original%20panic%20upon%20finding%20the%20problem%20eased%20a%20bit%20that%20I%20have%20been%20able%20to%20work%20around%20it.%20Many%20of%20my%20workbook%20functions%20are%20in%20the%20add%20in.%20Without%20access%20to%20the%20add%20in%2C%20I%20have%20to%20find%20a%20way%20to%20reincorporate%20it%20back%20into%20the%20workbook.%20I%20have%20been%20digging%20into%20the%20blogs%20to%20see%20if%20there%20is%20a%20way%20to%20not%20just%20add%20the%20add%20in%2C%20but%20add%20it%20to%20the%20reference.%20Any%20help%20or%20thoughts%20are%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-754903%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-754903%22%20slang%3D%22en-US%22%3EWithout%20more%20detailed%20knowledge%20about%20your%20system%20it%20is%20very%20hard%20to%20advise%2C%20I'm%20sorry.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755154%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755154%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes.%20Indeed.%20That's%20why%20my%20original%20panic%20upon%20finding%20the%20problem%20eased%20a%20bit%20that%20I%20have%20been%20able%20to%20work%20around%20it.%20Many%20of%20my%20workbook%20functions%20are%20in%20the%20add%20in.%20Without%20access%20to%20the%20add%20in%2C%20I%20have%20to%20find%20a%20way%20to%20reincorporate%20it%20back%20into%20the%20workbook.%20I%20have%20been%20digging%20into%20the%20blogs%20to%20see%20if%20there%20is%20a%20way%20to%20not%20just%20add%20the%20add%20in%2C%20but%20add%20it%20to%20the%20reference.%20Any%20help%20or%20thoughts%20are%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-767465%22%20slang%3D%22en-US%22%3ERe%3A%20ADD%20IN%20TROUBLE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-767465%22%20slang%3D%22en-US%22%3EWhy%20does%20the%20workbook%20need%20a%20reference%20to%20the%20add-in%3F%20Are%20you%20calling%20subs%20and%20functions%20from%20the%20add-in%20from%20within%20code%20in%20the%20workbook%3F%3C%2FLINGO-BODY%3E
RALI-R
New Contributor

I have a problem with an addin that I developed myself and have been using it for about 6 months. I just upgraded to MS Office 2019. With one particular workbook, this addin seems to cause a problem, in that the workbook opens briefly and shuts down. However, if I remove reference to the addin, open the workbook, add the reference for the addin back, lo and behold, the full functionality is there. However if I saved this workbook with the addin referenced in and then open, it does not work. So right now I am working this workaround by removing the addin reference and save and add it back when I need. Any thoughts, ideas?

Thank you,

RaliR

7 Replies

@RALI-R I would suggest to add breakpoints in your code and step through it to see what part of the code causes the shutdown. Without your add-in and workbook, this is impossible to troubeshoot for us I'm afraid.

@Jan Karel Pieterse ,

Thank you, Jan. Even just opening the workbook with reference to this add in caused it to open and close. But after your note, I added a subroutine to workbooks_open with a stop at the very first line. No go. Same thing happens.

I have been trying various tricks I can think of since I installed Office 2019 about 5 days ago. The same addin works fine with a couple of other workbooks without any issues. I tried renaming it, but no dice. At this point, I am out of ideas and looking for workarounds. The next step in my workaround is to see if I can programmatically add and remove addins.

What really baffles me is that the addin works fine even with this workbook if I add the reference after I open the workbook. I am open to any suggestions you have or anybody else has.

 

Regards,

RaliR

Highlighted
Does opening the file run anything in the referenced add-in by any chance?

@Jan Karel Pieterse ,

 

Yes. Indeed. That's why my original panic upon finding the problem eased a bit that I have been able to work around it. Many of my workbook functions are in the add in. Without access to the add in, I have to find a way to reincorporate it back into the workbook. I have been digging into the blogs to see if there is a way to not just add the add in, but add it to the reference. Any help or thoughts are appreciated.

Without more detailed knowledge about your system it is very hard to advise, I'm sorry.

@Jan Karel Pieterse ,

 

Yes. Indeed. That's why my original panic upon finding the problem eased a bit that I have been able to work around it. Many of my workbook functions are in the add in. Without access to the add in, I have to find a way to reincorporate it back into the workbook. I have been digging into the blogs to see if there is a way to not just add the add in, but add it to the reference. Any help or thoughts are appreciated.

Why does the workbook need a reference to the add-in? Are you calling subs and functions from the add-in from within code in the workbook?
Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies