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.
任何人都可以看到这段代码有什么问题。我收到“需要对象”错误:
Dim r As Range Set r = Sheet2.ChartObjects("myChart").BottomRightCell.Address
看起来很简单,但它不会工作。我需要能够做到:
r.row 和 r.column
ARange不是Address- 那是String. BottomRightCell返回一个Range。
Range
Address
String
BottomRightCell
Dim r As Range Set r = Sheet2.ChartObjects("myChart").BottomRightCell add = r.Address row = r.Row col = r.Column