VbaModule

VbaModule class

Represents the module in VBA project.

class VbaModule;

Properties

PropertyTypeDescription
namestringGets and sets the name of Module.
typeVbaModuleTypeReadonly. Gets the type of module.
binaryCodesUint8ArrayReadonly. Gets and sets the binary codes of module.
codesstringGets and sets the codes of module.

Methods

MethodDescription
getName()@deprecated. Please use the ’name’ property instead. Gets and sets the name of Module.
setName(string)@deprecated. Please use the ’name’ property instead. Gets and sets the name of Module.
getType()@deprecated. Please use the ’type’ property instead. Gets the type of module.
getBinaryCodes()@deprecated. Please use the ‘binaryCodes’ property instead. Gets and sets the binary codes of module.
getCodes()@deprecated. Please use the ‘codes’ property instead. Gets and sets the codes of module.
setCodes(string)@deprecated. Please use the ‘codes’ property instead. Gets and sets the codes of module.
isNull()Checks whether the implementation object is null.

name

Gets and sets the name of Module.

name : string;

type

Readonly. Gets the type of module.

type : VbaModuleType;

binaryCodes

Readonly. Gets and sets the binary codes of module.

binaryCodes : Uint8Array;

codes

Gets and sets the codes of module.

codes : string;

getName()

@deprecated. Please use the ’name’ property instead. Gets and sets the name of Module.

getName() : string;

setName(string)

@deprecated. Please use the ’name’ property instead. Gets and sets the name of Module.

setName(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getType()

@deprecated. Please use the ’type’ property instead. Gets the type of module.

getType() : VbaModuleType;

Returns

VbaModuleType

getBinaryCodes()

@deprecated. Please use the ‘binaryCodes’ property instead. Gets and sets the binary codes of module.

getBinaryCodes() : Uint8Array;

getCodes()

@deprecated. Please use the ‘codes’ property instead. Gets and sets the codes of module.

getCodes() : string;

setCodes(string)

@deprecated. Please use the ‘codes’ property instead. Gets and sets the codes of module.

setCodes(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;