Skip to content
本页内容

Select (方法)

选择对象。

返回值

Any

示例

python
#本示例选中 Chart1 上第一个图例项
def test():
    Application.Charts.Item("Chart1").ChartObjects(1).Chart.Legend.LegendEntries().Item(1).Select()
python
#此示例选中 Sheet1 中第二个图例项
def test():
    Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Legend.LegendEntries().Item(2).Select()