Index Example
Index Example
Although OpenOffice 1.1 Calc is able to read Microsoft Excel workbooks, compatibility extends
primarily to functionality found in worksheets. Excel workbooks with Visual Basic for
Applications (VBA) macros embedded do not function in Calc, even though VBA and StarBasic
(SB) are syntactically the same. The reason Excel/VBA workbooks do not work under Calc/SB is
due ZZ the differences in the underlying object models for Excel and Calc.
The intent of this document is to show, by way of examples, how to port VBA macros accessing
Excel objects to the equivalent SB macros accessing Calc objects. This manual is written from the
perspective of an experienced Excel/VBA programmer. Hence the reader is assumed to know the
VBA language and is familiar with the MS Excel Object Model. This document is not a tutorial on
SB.
The information contained here is based on Excel 2000 and OpenOffice 1.1 object models. A
discussion covering all aspects of the Excel object model is beyond the scope of this manual. This
manual's intent is to provide sufficient examples where the reader can get started in porting VBA to
SB and to point the reader to other references for more complete information.
This manual is a living document and is expected to be updated as more experience is gained. The
reader should feel free to contact the author to suggest areas to expand this document.
Feedback
Please direct any comments or suggestions about this document to:
dev@documentation.openoffice.org and masato12610@openoffice.org
Acknowledgments
First, thank you to all the folks posting and responding on the various mailing lists and forums.
These exchanges formed the basis for several examples found in this manual. Second, I'd like to
thank the following individuals who took time out of their busy schedule to suggest changes to
improve the document's readability and the code efficiency: dfrench, Geoff Farrell, Ian Laurenson,
Andrew Pitonyak and Juergen Schmidt. Lastly, I'd like to express my sincerest thank you to my
wife, Nora, for her patience and allowing me the time to work on this manual.
Alphabetical Index
Andrew Pitonyak........................................................................................................................................2
OpenOffice.................................................................................................................................................1