VbaProject

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IVbaProject

public final class VbaProject implements IVbaProject

Represents VBA project with presentation macros.

Constructors

Constructor Description
VbaProject() This constructor creates new VBA project from scratch.
VbaProject(byte[] data) This constructor loads VBA project from binary representation of OLE container.

Methods

Method Description
getName() Returns the name of the VBA project.
getModules() Returns the list of all modules that are contained in the VBA project.
getReferences() Returns the list of all references that are contained in the VBA project.
toBinary() Returns the binary representation of the VBA project as OLE container

VbaProject()

public VbaProject()

This constructor creates new VBA project from scratch. Project will be created in 1252 Windows Latin 1 (ANSI) codepage

VbaProject(byte[] data)

public VbaProject(byte[] data)

This constructor loads VBA project from binary representation of OLE container.

Parameters:

Parameter Type Description
data byte[]

getName()

public final String getName()

Returns the name of the VBA project. Read-only String.

Returns: java.lang.String

getModules()

public final IVbaModuleCollection getModules()

Returns the list of all modules that are contained in the VBA project. Read-only IVbaModuleCollection.

Returns: IVbaModuleCollection

getReferences()

public final IVbaReferenceCollection getReferences()

Returns the list of all references that are contained in the VBA project. Read-only IVbaReferenceCollection.

Returns: IVbaReferenceCollection

toBinary()

public final byte[] toBinary()

Returns the binary representation of the VBA project as OLE container

Returns: byte[] - Binary representation of the VBA project as OLE container