Search notes:

VB Editor Object Model: VBProject

The VBProject object represents a VBA project.

Properties and methods

buildFileName
collection
description
fileName
helpContextID
helpFile
makeCompiledFile()
mode
name
protection See also bypassing the VBA password check in Office
references A collection of reference objects.
saveAs()
saved
type
vbComponents
VBE

Relationship to Office documents

There is usually (always?) a one to one relationship between an Office file (or document such as a word document or an Excel workbook) and its corresponding vbProject object.
For example, the vbProject of a workbook can be found with an expression like
? activeWorkbook.vbproject.name

Container for code and forms

A vbProject object is a container for all VBA code and forms within the Office document that stores it. These items are referred to as «components» and might be referenced with an expression like
? activeWorkbook.vbproject.vbComponents

Adding references to a VBA project

A VBA project can use the functionality of another VBA project by adding a reference to the project from which it wants to import the desired functionality.

See also

Example: iterating over projects
The VB Editor object model
VBA project

Links

docs.microsoft.com: Visual Basic Add-in Model reference
C. Pearson: Programming the VBA Editor

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758193901, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Visual-Basic-Editor/Object-Model/VBProject/index(93): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78