Addin Disappear

jbesclapez

Active Member
Joined
Feb 6, 2010
Messages
275
Hello MrExcel!

I installed an addin like you advised me in order to run some macros.
When i open excel 2007, the addin starts OK (it is activated by default).
However, for an unknown reason it disappear when i run the macro from the addin.

Please could you help me troubleshooting that?
It is really tricky and i dont know what to give you for information....

Thanks for your help
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Mr Excel,
I investigated and i think i found where it bugs.
To find that i did a step by step ...

here is the code in the Addin that makes it to close... but why?
So i think the problem does not come from my macro but from the Addin?
What is your opinion?


Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Call WBRemovePopUp
End Sub


Code:
Sub WBRemovePopUp()
    On Error Resume Next
    Application.CommandBars(ThisWorkbook.Sheets("MenuSheet").Range("B2").Value).Delete
    On Error GoTo 0
End Sub
 
Upvote 0
Sorry... the problem could come from this line that calls a macro within the addin...

Sub OtherReport()
Application.Run ("NAddin.xlam!Macro1")
End Sub

But what am i doing wrong?? :confused::confused::confused:

I am just calling a macro in the addin
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top