Skip to content
本页内容

Select (方法)

选择对象。

返回值

Any

示例

python
#本示例选择图表工作表 Chart1 的图例
def test():
    legend = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Legend
    legend.Select()
python
#本示例选择工作表 Sheet1 中第一张图表的图例
def test():
    legend = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.Legend
    legend.Select()