Table of contents
TOC
Collapse the table of content
Expand the table of content

Import Method (VBA Add-In Object Model)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Adds a component to a project from a file; returns the newly added component. Syntaxobject.Import(filename) As VBComponent The Import syntax has these parts:

PartDescription
objectRequired. An object expression that evaluates to an object in the Applies To list.
filenameRequired. A String specifying path and file name of the component that you want to import the component from.

Remarks You can use the Import method to add a component,form, module, class, and so on, to your project.

© 2018 Microsoft