主题
Delete (方法)
删除对象。
返回值
Any
示例
python
#本示例删除工作表 Sheet1 中第一张图表的数值坐标轴
def test():
axis = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlValue)
axis.Delete()
python
#本示例删除图表工作表 Chart1 中图表的分类坐标轴
def test():
axis = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlCategory)
axis.Delete()