Interface IStdUserFormsClass
The UserForms collection: the forms that are loaded, in the order they were, numbered from 0 (Excel-measured, oracle\s41 U01-U19).
[StdLibClass("_UserForms", IsCreatable = false, TypeName = "Object")]
public interface IStdUserFormsClass
Remarks
Its class is one MS-VBA names nothing - TypeName(UserForms) is Object - and nothing can declare a variable of it: it is reached late-bound, through
UserForms(). A member it does not have (Remove) is error 438, as any late-bound member that is not there is.
Methods
Add(VBStringValue)
Loads a new instance of the form named name - not its default instance - and returns it; the collection holds it until it is unloaded.
A name that is no form's is error 424 (U05-U07).
RuntimeSemanticsEvaluationResult<VBObjectValue> Add(VBStringValue name)
Parameters
nameVBStringValueThe name of the form's module.
Returns
Count()
The number of forms that are loaded.
[StdLibMember(null, Kind = StdLibMemberKind.PropertyGet)]
RuntimeSemanticsEvaluationResult<VBLongValue> Count()
Returns
Item(VBLongValue)
The loaded form at index, from 0: its default member (UserForms(0)). An index that is no form's is error 9, and one that is no
number - a form's name - error 13 (U04, U09, U17).
[StdLibMember(null, UserMemId = 0)]
RuntimeSemanticsEvaluationResult<VBObjectValue> Item(VBLongValue index)
Parameters
indexVBLongValueThe position of the form.
Returns
NewEnum()
The loaded forms, for For Each (U11, U18).
[StdLibMember("_NewEnum", ReturnType = typeof(IStdEnumVariantClass), IsHidden = true, UserMemId = -4)]
RuntimeSemanticsEvaluationResult<VBObjectValue> NewEnum()