What do I need to do in order to get OpenOffice.org Calc to read the VBA code in an Excel file?

半世苍凉 提交于 2019-12-06 08:25:45

问题


My employer is considering installing OpenOffice.org's suite of Office products instead of using Microsoft Office. I've written several advanced applications in Access and Excel, and I'm trying to figure out what will and will not be compatable with OpenOffice.org.

Specifically, what do I need to do to have Calc (OpenOffice.org's version of Excel) read and execute VBA in macro's and tie macro events to button clicks?

Also of note, I'm using the MySQL Connector from within Excel to dynamically update data in the spreadsheet. What might I need to do to preserve data connectivity to our MySQL server?

Thanks


回答1:


As far as I know, OOo Base can connect to an mdb file to the extent that it can open tables and queries. I think anything else - forms, reqportes, macros VBA and native - would need to be redeveloped.

I don't believe that OOo Calc can read or execute VBA: it has its own dialect of Basic, which has a variant syntax. It doesn't, as far as I can tell, support the concept of Class, for example. Some work appears to be occurring, however, see the OpenOffice Wiki for more information. Right now, I'd say you should be planning on a careful and complete rewrite.

Regarding the MySQL connector - I'd say that's the least of your worries...

On the plus side, you're likely to have real job security for a year or two while you get everything ported!




回答2:


I recently discoverd go-oo which seems to be able to achieve your task.



来源:https://stackoverflow.com/questions/1651901/what-do-i-need-to-do-in-order-to-get-openoffice-org-calc-to-read-the-vba-code-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!