# executeMacro-执行宏
调用executeMacro函数执行宏。
最小支持版本:5.0.0
# 接口说明
已打开的工作簿对象,详情参见open (opens new window)。
# 语法
<ExcelWorkbook object>.executeMacro(<macro>)
1
<ExcelWorkbook object>.执行宏(<macro>)
1
# 函数类型
实例函数
# 请求参数
参数名称 | 类型 | 是否必选 | 默认值 | 示例值 | 描述 |
---|---|---|---|---|---|
macro | Cube.Lang.String | 是 | 无 | "Example01" | 需要执行的宏函数的名字,名称中不能带 等号(=)。 |
# 返回参数
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Result | Cube.Lang.Null | 无 | 该函数返回值为空值。 |
# 请求示例
ExcelWorkbook 对象.executeMacro("Example01")
1
最近更新时间: {
"value": "2023-09-12",
"effect": true
}