Skip to content
本页内容

Select (方法)

选择对象。

示例

python
#本示例选中工作表 Sheet1 中第一张图表的数值轴
def test():
    axis = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlValue)
    axis.Select()
python
#本示例选中图表工作表 Chart1 中图表的类别轴
def test():
    axis = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlCategory)
    axis.Select()