background preloader

Bureautique

Facebook Twitter

How to Convert Excel Macro to Open Office. OpenOffice.org Calc adds support for Excel VBA. As an Excel user, you may have looked at OpenOffice.org and found that it doesn't support Visual Basic for Applications (VBA), the Microsoft Office macro language. If you've spent years building hundreds of Excel macros, the fear of losing them all could keep you locked in to Office. If so, it's time to look again; Novell has taken OpenOffice.org's source code and create a version of its own that supports Excel VBA. Novell's Noel Power is the developer in charge of introducing Excel VBA interoperability into OpenOffice.org Calc. He says that the interoperability is achieved by: allowing Excel VBA macros to run natively within OpenOffice.org;providing a compatibility object model;continuously improving the compatibility model by identifying and implementing the most useful and widely used APIs;extending the symbols available to ooo-basic to include the compatibility API; andmodifying the core ooo-basic runtime to handle Excel VBA syntax.

Let's look at the code in the OOo Basic Editor. Excel VBA to OpenOffice Basic Converter. Business Spreadsheets has developed a service to assist in the conversion of Excel VBA code to the equivalent OpenOffice Calc Basic script. The VBA to OO Basic converter does not completely convert Excel VBA macros to OO Basic macros for Calc nor seamlessly migrate Excel VBA projects to OpenOffice environments. While much of the underlying logic behind OpenOffice Basic compares to that of Visual Basic for Applications, there exists fundamental differences to the way the code is constructed.

This Excel VBA to OpenOffice Basic converter offers a starting point for migrating VBA projects in Excel to the OpenOffice or Star Office Calc application. The converter may also serve as a learning mechanism to better understand the similarities and differences between the VBA and OO Basic coding specifications. Reference should be made to the material for Porting Excel/VBA to Calc/Star Basic at OpenOffice.org when undertaking migrations from Microsoft Excel to OpenOffice or Star Office Calc. Workbook.ActiveSheet Property (Microsoft.Office.Tools.Excel)

VBA. This article is outdated. The VBA interoperability project is a joint Novell & Sun incubator project whose aim is to deliver a way to run Excel and Word macros natively in imported documents. Noel Power (lead) Andreas Bregas (co-lead) Visual Basic for Applications (VBA) is an implementation of Microsoft's Visual Basic which is built into all Microsoft Office applications.

Latest news CWS SRC680 npower6 has been integrated into m211 Update Wiki Page with latest info Novell and Sun to work together on the VBA incubator project I am delighted that Andreas Bregas now joins me to co-lead the vba incubator project Terminology helperapi - The compatibility API generously donated by Sun that was part of their migration toolkit oovbaapi - the ooo-build vba interoperability solution originally implemented by Novell + object implementations from the helperapi. Dashboard CWS SRC680 npower8 (nearly complete) (contains) Task queue and status (in order of priority) Completed Features How can I help you? Date et heure (bibliothèque d'exécution de OpenOffice.org) Dans OpenOffice.org Basic, le type de données Date enregistre les informations de date et d'heure dans un format binaire. Spécification de la date et de l'heure dans le code de programme Vous pouvez assigner une date à une variable de date par la simple assignation d'une chaîne : Dim MyDate As Date MyDate = "24.1.2002" Cette assignation peut fonctionner correctement, car OpenOffice.org Basic convertit automatiquement la valeur de date définie sous forme de chaîne en variable de date.

Ce type d'assignation peut cependant provoquer des erreurs, les valeurs de date et d'heure étant définies et affichées différemment selon les pays. Comme OpenOffice.org Basic utilise les paramètres nationaux du système d'exploitation lors de la conversion d'une chaîne en valeur de date, l'expression indiquée plus haut ne fonctionne correctement que si les paramètres nationaux correspondent au format de la chaîne de caractères.

Dim MyVar As Date MyDate = DateSerial (2001, 1, 24) Extraction de la date et de l'heure. Formatting Spreadsheet Documents. A spreadsheet document provides properties and methods for formatting cells and pages. Cell Properties There are numerous options for formatting cells, such as specifying the font type and size for text. Each cell supports the com.sun.star.style.CharacterProperties and com.sun.star.style.ParagraphProperties services, the main properties of which are described in Text Documents. Special cell formatting is handled by the com.sun.star.table.CellProperties service. The main properties of this service are described in the following sections. You can apply all of the named properties to individual cells and to cell ranges. Background Color and Shadows The com.sun.star.table.CellProperties service provides the following properties for defining background colors and shadows: CellBackColor (Long) background color of the table cell IsCellBackgroundTransparent (Boolean) sets the background color to transparent ShadowFormat (struct) Location (enum) ShadowWidth (Short) IsTransparent (Boolean) Color (Long)

Api: Service CellProperties.