VbaProjectReference

Inheritance: java.lang.Object

public class VbaProjectReference

Represents the reference of VBA project.

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");

Methods

MethodDescription
copy(VbaProjectReference source)
equals(Object arg0)
getClass()
getExtendedLibid()Gets the extended Libid of the reference.
getLibid()Gets the Libid of the reference.
getName()Gets the name of the reference.
getRelativeLibid()Gets the referenced VBA project’s identifier with an relative path.
getTwiddledlibid()Gets the twiddled Libid of the reference.
getType()Gets the type of this reference.
hashCode()
notify()
notifyAll()
setExtendedLibid(String value)Sets the extended Libid of the reference.
setLibid(String value)Sets the Libid of the reference.
setName(String value)Sets the name of the reference.
setRelativeLibid(String value)Sets the referenced VBA project’s identifier with an relative path.
setTwiddledlibid(String value)Sets the twiddled Libid of the reference.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

copy(VbaProjectReference source)

public void copy(VbaProjectReference source)

Parameters:

ParameterTypeDescription
sourceVbaProjectReference

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExtendedLibid()

public String getExtendedLibid()

Gets the extended Libid of the reference.

Remarks

Only for control reference.

Returns: java.lang.String

getLibid()

public String getLibid()

Gets the Libid of the reference.

Returns: java.lang.String

getName()

public String getName()

Gets the name of the reference.

Returns: java.lang.String

getRelativeLibid()

public String getRelativeLibid()

Gets the referenced VBA project’s identifier with an relative path.

Remarks

Only for project reference.

Returns: java.lang.String

getTwiddledlibid()

public String getTwiddledlibid()

Gets the twiddled Libid of the reference.

Remarks

Only for control reference.

Returns: java.lang.String

getType()

public int getType()

Gets the type of this reference.

See VbaProjectReferenceType.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setExtendedLibid(String value)

public void setExtendedLibid(String value)

Sets the extended Libid of the reference.

Remarks

Only for control reference.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setLibid(String value)

public void setLibid(String value)

Sets the Libid of the reference.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setName(String value)

public void setName(String value)

Sets the name of the reference.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setRelativeLibid(String value)

public void setRelativeLibid(String value)

Sets the referenced VBA project’s identifier with an relative path.

Remarks

Only for project reference.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setTwiddledlibid(String value)

public void setTwiddledlibid(String value)

Sets the twiddled Libid of the reference.

Remarks

Only for control reference.

Parameters:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int