vbComponent
object represents a VBA module, a class, a form or (?) a standalone project, see also the corresponding (?) vbext_ct_*
constants for the add
method of the vbComponents
object. vbComponent
can be created from a source file with dim mdl as vbide.vbComponent set mdl = application.VBE.activeVBProject.vbComponents.import("P:\ath\to\some\source\code\file.bas") mdl.name = "Foo bar baz Module"
codeModule.addFromFile
application.VBE.activeVBProject.vbComponents("shCoverData").activate
vbComponent
are codeModule | returns the codeModule object that is associated with a component. |
collection | |
designer | An UserForm object if the vbComponent is a form. |
designerID | A string (whose value appears to be Forms.Form , at least in «normal» situations) |
hasOpenDesigner | |
name | |
properties | A collection of property objects. For forms, it seems that hasOpenDesigner must be true in order for this collection to be valid. |
saved | |
type | |
vbe |
00_ModuleLoader
module, especially the functions loadOrReplaceModuleWithFile
and loadModuleFromFile
. vbComponents
object of the The VB Editor object model