Description

Add a new project to the collection.

Return Type

A McProject object.  

A new McProject object.

Syntax

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

The Add 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

This method creates a new project and will fail it a project with the same name already exists.