VbaModule

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tasks.IVbaModule

public final class VbaModule implements IVbaModule

Represents a VBA module.

Methods

MethodDescription
createClassModule(String name)Creates an instance of VbaModule with VbaModuleType.ClassModule type.
createProceduralModule(String name)Creates an instance of VbaModule with VbaModuleType.ProceduralModule type.
getAttributes()Gets a collection of the module’s attributes.
getName()Gets a name of the VBA module
getSourceCode()Gets a source code of the VBA module
getType()Gets the type of the module.
setName(String value)A name of the VBA module
setSourceCode(String value)Sets a source code of the VBA module

createClassModule(String name)

public static VbaModule createClassModule(String name)

Creates an instance of VbaModule with VbaModuleType.ClassModule type.

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: VbaModule

createProceduralModule(String name)

public static VbaModule createProceduralModule(String name)

Creates an instance of VbaModule with VbaModuleType.ProceduralModule type.

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: VbaModule

getAttributes()

public final VbaModuleAttributeCollection getAttributes()

Gets a collection of the module’s attributes.

Returns: VbaModuleAttributeCollection - a collection of the module’s attributes.

getName()

public final String getName()

Gets a name of the VBA module

Returns: java.lang.String - a name of the VBA module

getSourceCode()

public final String getSourceCode()

Gets a source code of the VBA module

Returns: java.lang.String - a source code of the VBA module

getType()

public final int getType()

Gets the type of the module.

Returns: int - the type of the module.

setName(String value)

public final void setName(String value)

A name of the VBA module

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa name of the VBA module

setSourceCode(String value)

public final void setSourceCode(String value)

Sets a source code of the VBA module

Parameters:

ParameterTypeDescription
valuejava.lang.Stringa source code of the VBA module