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: |
| object | An expression evaluating to an object of type McCommandPages. | | Name | Required. A String value. Name of the new page.
| | Type | Required. A mcCommandPageType enumeration, as described in settings. mcCommandPageType : Type of page to create.
| | Source | Optional. A Variant value. ProgId of the registered ActiveX Control implementing the page.
| Settings The settings for Type are:
 | mccptControl | 0 |
Page is an ActiveX control.
|
 | mccptForm | 1 |
Page is a VBA form.
|
 | mccptHTML | 2 |
Page is a Web page.
|
 | mccptTypeMask | 255 | |
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.
|