Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MS Excel 2007 中使用 VBA,并且我的单元格具有每分钟更新的 RTD 功能。我的代码运行良好,但尽管寻找答案,但我还没有弄清楚如何在 RTD 单元中引入新数据时使代码循环。这个问题有简单的答案吗?
在 Excel VBA 中有一个名为Worksheet_Change的事件。更改单元格值时会触发此事件。我认为这个活动是你需要的。
Private Sub Worksheet_Change(ByVal Target As Range) 'write your code here (Target is the cell) End Sub