Description

Load an existing project file from the disk.

Return Type

A McProject object.  

A McProject object.

Syntax

object.Open ([Name], [Flags])

The Open Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McProjects.
NameOptional. A String value.
FlagsOptional. A mcProjectFlags enumeration, as described in settings.

Settings

The settings for Flags are:

ConstantValueDescription
 mcpfNormal0

Default standard project.

 mcpfHidden1

The project will not be displayed in the VBA IDE.

 mcpfDisableMacros2

Macros from this project will not be listed in the Macros dialog.

 mcpfDisableSave4

The project is read-only.

 mcpfThrowAwayCompiledState8

Do not use pre-compiled code for this project.

 mcpfVBAMask255

Mask for VBA flags.

 mcpfShowIDE256

Automatically display the VBA IDE when loading the project.

 mcpfNoEvents512

Do not fire McProject events.

 mcpfNoReload1024

Do not reload existing projects.

Remarks

Id the project is already loaded, it will be reloaded prompting the user to overwrite changes if need be.