VbaModule

Overview

VbaModule is a class in Aspose.Words FOSS for Java. Inherits from: Cloneable.

Provides access to VBA project module.

Edition status of its 11 listed members (a property and its accessor methods are listed separately, overloads once): 11 not yet exercised by a verified example.

This class declares 8 methods for VbaModule objects in Java programs. Available methods include: VbaModule, deepClone, getName, getSourceCode, getType, setName, setSourceCode, setType. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: name, sourceCode, type.

Properties

NameTypeAccessDescription
nameStringRead/WriteGets or sets VBA project module name.
sourceCodeStringRead/WriteGets or sets VBA project module source code.
typeintRead/WriteSpecifies whether the module is a procedural module, document module, class module, or designer module.

Methods

SignatureDescription
VbaModule()Creates an empty module.
deepClone() → VbaModulePerforms a copy of the VbaModule.
getName() → StringGets or sets VBA project module name.
setName(value: String)Sets the name value.
getSourceCode() → StringGets or sets VBA project module source code.
setSourceCode(value: String)Sets the source code value.
getType() → intSpecifies whether the module is a procedural module, document module, class module, or designer module.
setType(value: int)Sets the type value.

See Also