편집

다음을 통해 공유


Import method (VBA Add-In Object Model)

Adds a component to a project from a file; returns the newly added component.

Syntax

object.Import (filename) As VBComponent

The Import syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
filename Required. A String specifying the path and file name of the component that you want to import the component from.

Remarks

Use the Import method to add a component, form, module, class, and so on, to your project.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.