I am trying to call the Shared Add-in COM Reg开发者_如何学JAVAisterd method from VBA. I am using .NET Framework 2 and doing the code as it is in the post Link
But when i build the add-in i get the error
'RequestComAddInAutomationService()' no suitable method found to override
Please can anyone help me on this?
The error message suggests that none of the base classes of the class that contains your implementation of RequestComAddInAutomationService
contains a definition of that method.
Make sure that your class actually derives from Microsoft.Office.Tools.AddIn
.
Maybe it gets clearer if you follow this walkthrough:
Walkthrough: Calling Code in an Application-Level Add-in from VBA
精彩评论