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.
我正在研究 Excel 和 VBA 中的交易算法。Excel 文档中的一个单元格会从交易者客户端更新剩余时间。每次该单元格更改其值时,我都想调用一个方法。这是怎么做到的?
请参阅此页面上的解决方案:
在单元格更改时自动执行 Excel 宏
要在单元格 A1 更改时触发事件,
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Target.Worksheet.Range("A1")) Is Nothing Then Macro End Sub