如何检测在C#中的Excel单元格中的变化? [英] how to detect a change in any excel cell in C#?

查看:495
本文介绍了如何检测在C#中的Excel单元格中的变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写一个Excel VSTO添加进来,并希望得到一个小区改变事件的保持在一个特定的表。

I am writing an excel VSTO add in, and would like to get a hold of a cell change event in a specific sheet.

如何才能做到这一点?

how can this be done?

推荐答案

检查 Excel.Application.SheetChange 事件处理程序。
它时,任何表的任意单元格被改变基本触发。然后
你可以检查更改表名称为处理程序操作仅筛选到目标表。

Check the Excel.Application.SheetChange event handler. it basically fires whenever any cell in any sheet is changed. you can then check the changed sheet name to filter the handler operation only to your target sheet.

这篇关于如何检测在C#中的Excel单元格中的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆