创建Com对象
<h1>功能</h1>
<p>用指定的类名或类ID创建一个Com对象。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>ClassID</td>
<td>【字符串】创建对象的类ID,直接输入类ID。</td>
</tr>
<tr>
<td>ClassIName</td>
<td>【字符串】创建对象的类名,直接输入类名。</td>
<td>'Excel.Application'</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>对象</td>
<td>【字符串】,根据指定类名或类ID所创建的变量,创建输出变量。</td>
<td>ExcelApp</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.该网站里的对象均可创建:<a href="https://docs.microsoft.com/zh-cn/office/vba/api/overview/">https://docs.microsoft.com/zh-cn/office/vba/api/overview/</a></p>
<h1>相关函数</h1>
<p>无</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/b8c76b55f1f7ca7c9387ab3a61930aa3" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/27c6ddbe2b195a7413a05fc4c570c8a2" title="[组件[创建Com对象]_20210428.db">组件[创建Com对象]_20210428.db</a></p>