开发者

Accessing VSTO method in VBA

开发者 https://www.devze.com 2023-01-05 02:11 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消