Search code examples
c#excel-2007

How to define an Excel macro using C#


I have a problem about how to define Excel macros via C# code. For example, I create a button in Excel, and then assign a C# function to it as its macro function instead of using VBA. Can anybody give me some point?? Thanks..


Solution

  • Here is an Article that explains what you are trying to do I hope this helps

    Excel Macro -Create and Run at Runtime using C#