Export 方法 (VBA 加载项对象模型)Export method (VBA Add-In Object Model)

将组件另存为一个单独文件或多个文件。Saves a component as a separate file or files.

语法Syntax

对象Export(filename)object.Export (filename)


Export 的语法包含以下部分:The Export syntax has these parts:

PartPart 说明Description
objectobject 必需。Required. 一个计算结果为 "适用范围" 列表中的对象的对象表达式An object expression that evaluates to an object in the Applies To list.
filenamefilename 必需。Required. 一个字符串,指定要向其中导出组件的文件的名称。A String specifying the name of the file that you want to export the component to.

备注Remarks

当使用 Export 方法将组件另存为一个单独文件或多个文件时,请使用尚不存在的文件名;否则会发生错误。When you use the Export method to save a component as a separate file or files, use a file name that doesn't already exist; otherwise, an error occurs.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.