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 中,是否可以直接从一个对象(例如单元格或图表)跳转以查看更改其属性的任何代码?
我能得到的最接近的方法是在 VBA 中添加一个 Watch 表达式:
Worksheets("MySheetName").Cells(1,1).Value
如果将该表达式添加为具有“更改时中断”设置和适当范围(例如模块)的监视,则任何更改该单元格(A1)值的代码都会导致代码在调试模式下暂停。然后你可以看到刚刚改变了什么。