Excel add-in on startup

前端 未结 2 1269
独厮守ぢ
独厮守ぢ 2021-01-24 02:12

I am creating an add in for Microsoft Excel using Visual C#. When I first created the solution, it included a function called ThisAddIn_Startup. I added the following code to

相关标签:
2条回答
  • 2021-01-24 02:47

    Nothing is magic and ThisAddIn_Startup is called by something before executing your MessageBox.Show instruction.

    You can use "Find All References" in Visual Studio, it will bring you to ThisAddin.InternalStartup(), a private method in ThisAddin.cs.

    This method is called by the framework's runtime.

    Did this explanation help?

    0 讨论(0)
  • 2021-01-24 02:53

    When developing AddIn's for Excel you will sometimes create bugs that will trigger Excel to disable the AddIn. If so you need to Go into Excel, go to File / Options and select Add-Ins. At the lower left of the screen there is a drop down list with the label "Manage:". Select "Disabled Items" and click Go button. If your tool is disabled you will see it there and you can re-enable it. This was an example from Office 2010. The new version might have rearranged this, I don't know.

    0 讨论(0)
提交回复
热议问题