21.08.2013 Views

OpenOffice.org Administration Guide - OpenOffice.org wiki

OpenOffice.org Administration Guide - OpenOffice.org wiki

OpenOffice.org Administration Guide - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>OpenOffice</strong>.<strong>org</strong> Basic Macros and Libraries<br />

' destination for the modules from the source document.<br />

oLib = BasicLibraries ' For Basic libaries<br />

oGlobalLib = GlobalScope.BasicLibraries<br />

For iLib = 1 To 2<br />

If oGlobalLib.hasByName( DestLibraryName ) = False Then<br />

oGlobalLib.createLibrary( DestLibraryName )<br />

End If<br />

If oLib.hasByName( SrcLibraryName ) Then<br />

oLib.loadLibrary( SrcLibraryName )<br />

oSrcLib = oLib.getByName( SrcLibraryName )<br />

sSrcModules = oSrcLib.getElementNames()<br />

iCounter = lBound( sSrcModules() )<br />

while( iCounter

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!