我可以获取应用程序.Selection
属性选择的区域。
(我正在使用python访问excel com界面)
例如,我想知道用户选择了多少行和列
input:
user has selected A1:G8
output:
the selected range starts from Column 1 (by selection.Column)
the selected range starts from Row 1 (by selection.Column)
the selected range is spanning 7 rows (by ?)
the selected range is spanning 8 columns (by ?)
我正在查看 MSDN 的Range interface,但该属性似乎对这个问题没有帮助。