Interprocess Communication between Excel & C# Application?

后端 未结 2 1190
感动是毒
感动是毒 2021-01-22 07:04

I was wondering if there was a way to set up communication between an instance of excel and a C# Application. For instance, when a cell value changes, I would like to send the u

2条回答
  •  [愿得一人]
    2021-01-22 07:24

    You can use the Visual Studio Tools for Office (VSTO) project types available in Visual Studio to automate Office from C# code. This ensures you use only managed code and do not rely on COM or the Primary Interop Assemblies being available/installed.

    This is the preferred approach when compared to the COM solution. For further information and examples, please take a look at the MSDN page.

提交回复
热议问题