脚本向导-帮助文档

脚本向导-帮助文档


执行宏

<h1>功能</h1> <p>在工作簿中执行宏。工作簿文件需是启用宏的工作簿。</p> <h1><strong>输入</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>宏文件</td> <td>【字符串】要执行的宏的文件,文件格式为*.xlsm</td> <td>''F:\测试数据\2.xlsm''</td> </tr> <tr> <td>宏名称</td> <td>【字符串】要执行的宏的名称,必填</td> <td>‘设置颜色’</td> </tr> </tbody> </table> <h1><strong>选项</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>宏参数</td> <td>【字符串列表】用于在执行宏时传递参数,list格式,可传递最多30个参数(如有),{填入变量名称}</td> <td>列表</td> </tr> </tbody> </table> <h1><strong>输出</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>宏输出</td> <td>【字符串】宏执行所返回的值(如有)</td> </tr> </tbody> </table> <h1><strong>注意/说明</strong></h1> <p>1.参数【宏名称】为必填项 2.调用的宏文件与要进行单元格颜色填充的文件不是同一文件。 3.此处的&quot;.xlsm&quot;的宏文件,是指具有宏脚本的文件,可通过调用该文件进行相应的宏操作。 4.控制台需以管理员身份启动。</p> <h1>相关函数</h1> <p>无</p> <h1><strong>示例/演示</strong></h1> <p>现以设置颜色为例: 1.先进行一个宏录制,录制完成后,将该宏文件另存为.xlsm格式的文件,作为后续调用的宏文件。 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/cb3b57d2691ce61f546fbe07f0122b64" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4267d1d99b2afbcf6e1ef98a1ef0462c" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/1470c206f82fafdb285f5a115cec557e" alt="" /> 2.各函数的属性设置: <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/8f8d1bb436b16507c6c60639c0759cd7" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/a7245e3a2de6dd48a0b412171750021c" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/7ebefcf6a26e29bda5f4f605949e38b7" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/6f94ccb28c2c63c993c260d002b4e73d" alt="" /></p> <h1>示例附件</h1> <p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/ad806db709f39c33a95852609221ae38" title="[组件[执行宏]_20210401.db">组件[执行宏]_20210401.db</a></p>

页面列表

ITEM_HTML