public class VbaProjectReference
extends java.lang.Object
Example
//Instantiating a Workbook object
Workbook workbook = new Workbook();
// Init VBA project.
VbaProject vbaProject = workbook.getVbaProject();
// Add vba project reference
vbaProject.getReferences().addRegisteredReference("stdole", "\*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\\Windows\\system32\\stdole2.tlb#OLE Automation");
//Saving the Excel file
workbook.save("book1.xlsm");
| Modifier and Type | Method and Description |
|---|---|
void |
copy(VbaProjectReference source) |
java.lang.String |
getExtendedLibid()
Gets the extended Libid of the reference.
|
java.lang.String |
getLibid()
Gets the Libid of the reference.
|
java.lang.String |
getName()
Gets the name of the reference.
|
java.lang.String |
getRelativeLibid()
Gets the referenced VBA project's identifier with an relative path.
|
java.lang.String |
getTwiddledlibid()
Gets the twiddled Libid of the reference.
|
int |
getType()
Gets the type of this reference.
|
void |
setExtendedLibid(java.lang.String value)
Sets the extended Libid of the reference.
|
void |
setLibid(java.lang.String value)
Sets the Libid of the reference.
|
void |
setName(java.lang.String value)
Sets the name of the reference.
|
void |
setRelativeLibid(java.lang.String value)
Sets the referenced VBA project's identifier with an relative path.
|
void |
setTwiddledlibid(java.lang.String value)
Sets the twiddled Libid of the reference.
|
public void copy(VbaProjectReference source)
source - public int getType()
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getLibid()
public void setLibid(java.lang.String value)
public java.lang.String getTwiddledlibid()
Remarks
Only for control reference.public void setTwiddledlibid(java.lang.String value)
Remarks
Only for control reference.public java.lang.String getExtendedLibid()
Remarks
Only for control reference.public void setExtendedLibid(java.lang.String value)
Remarks
Only for control reference.public java.lang.String getRelativeLibid()
Remarks
Only for project reference.public void setRelativeLibid(java.lang.String value)
Remarks
Only for project reference.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.