VbaModuleCollection

VbaModuleCollection class

Represents the list of VbaModule

Methods

NameDescription
add(sheet)Adds module for a worksheet.
add(type, name)Adds module.
add()Reserved for internal use.
addDesignerStorage(name, data)
addUserForm(name, codes, designerStorage)Inser user form into VBA Project.
clear()
contains()Reserved for internal use.
get(index)Gets VbaModule in the list by the index.
get(name)Gets VbaModule in the list by the name.
get()Reserved for internal use.
getCount()
getDesignerStorage()Represents the data of Designer. We do not support to parse them. Just only for copying.
indexOf()Reserved for internal use.
iterator()
remove(sheet)Removes module for a worksheet.
remove(name)Remove the module by the name
removeAt()

add(sheet)

Adds module for a worksheet.

ParameterTypeDescription
sheetWorksheetThe worksheet

Returns: Number — Number

add(type, name)

Adds module.

ParameterTypeDescription
typeNumberVbaModuleType
nameStringThe name of module.

Returns: Number — Number

add()

Reserved for internal use.

addDesignerStorage(name, data)

ParameterTypeDescription
nameString
dataArray of byte

addUserForm(name, codes, designerStorage)

Inser user form into VBA Project.

ParameterTypeDescription
nameStringThe name of user form
codesStringThe codes for the user form
designerStorageArray of bytethe designer setting about the user form

Returns: Number — Number

clear()

contains()

Reserved for internal use.

get(index)

Gets VbaModule in the list by the index.

ParameterTypeDescription
indexNumberThe index.

Returns: VbaModule — VbaModule

get(name)

Gets VbaModule in the list by the name.

ParameterTypeDescription
nameStringThe name of module.

Returns: VbaModule — VbaModule

get()

Reserved for internal use.

getCount()

getDesignerStorage()

Represents the data of Designer. We do not support to parse them. Just only for copying.

indexOf()

Reserved for internal use.

iterator()

remove(sheet)

Removes module for a worksheet.

ParameterTypeDescription
sheetWorksheetThe worksheet

Returns: void — void

remove(name)

Remove the module by the name

ParameterTypeDescription
nameString

removeAt()