VBProject Properties

Name

Returns

Description

BuildFileName

String

For ActiveX DLLs only, gets or sets the name of the DLL file to compile the project into.

Description

String

For ActiveX DLLs only, the description of the DLL as it will appear in the Tools O References list.

FileName

String

Read-only. For workbook projects, returns the full name of the workbook. For ActiveX DLL projects, returns the name of the source code version of the project *.vba. If the file has not been saved, a run-time error occurs if you try to read this property.

Name Returns Description

HelpContextID

Long

Identifies the default help-file context ID for the project.

HelpFile

String

Gets or sets the help file for a project. Each of the UserForms and controls within the project can be assigned a context ID to show a page from this help file.

Mode

Vbext_ VBAMode

Read-only. Returns the VBProject's operation mode (Design, Run, or Break). Note that a VBProject can have different execution modes (for example, an ActiveX COM Add-In project can be running while you are in Design mode on a different project).

Name

String

The name of the project.

Project

Protection

Read-only. Returns whether the project is locked for viewing. Locked projects only expose their VBProject object. Any attempt to navigate below the VBProject level results in an error. Note that if a VBProject is set to Protected, but is unprotected by the user during a session, its Protection property shows as vbext_pp_none for the remainder of that session.

References

References

Read-only. Returns the collection of References for the VBProject. See the References object for more information.

Saved

Boolean

Read-only. Returns whether the VBProject has been changed since the last save. For Excel projects, this should agree with the workbook's Saved property.

Project

Type

Read-only. Returns the type of project—host project (an Excel workbook, Word document, Access database, and so on) or an ActiveX DLL project.

VBComponents VBComponents Read-only. Returns the collection of VBComponents in the project. See the VBComponent object for more information.

Was this article helpful?

0 0

Post a comment