Description

Adds a page to the collection.

Return Type

A McCommandPage object.  

Syntax

object.Add (Name, Type, [Source])

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandPages.
NameRequired. A String value.

Name of the new page.

TypeRequired. A mcCommandPageType enumeration, as described in settings.

mcCommandPageType : Type of page to create.

SourceOptional. A Variant value.

ProgId of the registered ActiveX Control implementing the page.

Settings

The settings for Type are:

ConstantValueDescription
 mccptControl0

Page is an ActiveX control.

 mccptForm1

Page is a VBA form.

 mccptHTML2

Page is a Web page.

 mccptTypeMask255

Remarks

Dialog pages are usually defined in the dialog description file (.dlg), which is located in Resources\Dialogs. This function is called internally when the dialog file is loaded and parsed by McCommandDialog.Load.