设置范围对齐方式
<h1>功能</h1>
<p>设置Excel工作表指定范围内的对齐方式。</p>
<h1><strong>选项</strong></h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>工作表名称</td>
<td>【字符串】工作表的名称</td>
<td>'Sheet3'</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>
<td>‘B1’</td>
</tr>
<tr>
<td>垂直对齐方式</td>
<td>【整型】多种可选择的垂直对齐方式,可按需进行选择</td>
<td>居中</td>
</tr>
<tr>
<td>水平对齐方式</td>
<td>【整型】多种可选择的水平对齐方式,可按需进行选择</td>
<td>居中</td>
</tr>
</tbody>
</table>
<h1><strong>注意/说明</strong></h1>
<p>1、使用该函数,需要和‘Excel应用程序范围’函数搭配。
2、使用该函数时,需要确保要操作的excel文件是处于关闭状态。</p>
<h1>相关函数</h1>
<p>无</p>
<h1><strong>示例/演示</strong></h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/c6dd9c785efd53a0085467c731792233" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/6836387e45439db517dc0f79efc40aa2" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/a09ebfe5a5fa74b5162427eb0ca8e0aa" title="[组件[设置范围对齐方式]_20210205.db">组件[设置范围对齐方式]_20210205.db</a></p>