OpenOffice.org and Excel VBA Macros
[Note to All Readers: I no longer work at Novell, so I have stopped taking submissions for Excel VBA macros to test. Thanks to all those who provided the OOo team with macros to try. --Ted (05May08)]
[Mac Users concerned about VBA Macros: Help us keep improving VBA macro support in Calc. See below about sending us your macro-laden XLS files. Thanks, Ted (10Aug06)]
You have to love a guy like Michael Meeks. Widely renowned for his bare-bones blog style, Michael is also the foremost contributor to OpenOffice.org outside of the maintainers at Sun .
One of Michael’s latest areas of endeavor is getting Microsoft Excel VBA macros to execute in OpenOffice Calc.
This screenshot shows a fairly geeky example of a hypocycloid generator. The generator uses a VBA macro, shown lower left, to generate source values from the positions of three interactive sliders on the left near where it says “Parameters.” The data is dumped into the table at the far right. Another macro chews up the data and spits out the hypocycloid graphic. Still more macros allow you to click through some pre-set values, generate random values, and so on.
The point, however, is not what the example macros shown here do. The point is that they are Excel macros correctly doing work in Calc.
Want to contribute? When I talked with Michael at GUADEC, he said that he doesn’t have enough real world Excel macros to test against.
So if you have a good example, send it my way and I’ll send it to Michael in his secret OpenOffice.org laboratory.
I’m thaeger at that novell dot com place.
[21AUG06: Update Posted.]



Hello,
Excellent work. Macros, an area that needs to be made more accessible to the medium/advanced user.
Keep up the good work.
Comment by tray — July 14, 2006 @ 2:42 pm
Hi, can you point me to the same thing for MS Office/Open Office Macros.
Comment by Raena — November 8, 2006 @ 6:30 am
[...] big, heavy-lifting projects. For example, the team made a massive code contribution to enable OOo Calc to run Excel VBA Macros. These contributions sometimes involve thousands of lines of code, so they take a long time for the [...]
Pingback by Available Now: OpenOffice.org Novell Edition for Windows « Open Source Advocacy with Reverend Ted — March 13, 2007 @ 12:59 pm
[...] big, heavy-lifting projects. For example, the team made a massive code contribution to enable OOo Calc to run Excel VBA Macros. These contributions sometimes involve thousands of lines of code, so they take a long time for the [...]
Pingback by Novell OpenOffice 2.0 for Windows « Mr.Novell’s Blog — March 13, 2007 @ 3:55 pm
hola alguien me podra decir como abrir la macros que tengo en excel en calc. me urge si alguien
me podra ayudar gracias.
gracias
Comment by koalitas — June 5, 2007 @ 10:00 am
Koalitas [5]:
No te puedo ayudar bien con abrir sus macros en Excel a Calc. Yo no trabajo aun a Novell, y entonces no tengo contacto con los enginerios de OpenOffice.org en la misma capacidad que antes saliendo. Yo te recommendo que tu contactaria la gente en la communidad de OpenOffice.org. Buen suerte,
Ted
Comment by Ted Haeger — June 5, 2007 @ 7:15 pm
I have just downloaded OO 2.1 and the OpenXML Translator for Windows, and will give it a try on XP. While that was going on I pdated both my Suse 10.2 OpenOffice installs, and will be giving them a good work out tomorrow. So far it looks very good. Please thank Michael & his team for their hard work. It looks like there will shorlty be no excuse for not being able to use OpenOffice in the business environement.
Comment by Sadiq Mohamed — August 6, 2007 @ 5:40 pm
Sadiq [7]:
They will appreciate it far more from you than from me. After all, I’m just a fanboy. 
With our recent email interaction, you should now have Michael and Noel’s email addresses. Send them a thank you praising their glorious efforts.
–Ted
Comment by Ted Haeger — August 7, 2007 @ 7:44 am
i would like to know how mr.michael do it..
Comment by clawie — September 17, 2007 @ 8:29 pm
Is this Macro enabled in the published Novell Edition of OpenOffice in SuSE?
How to find the function? Thanks
Comment by Rui SuYing — October 31, 2007 @ 12:55 am
@Rui SuYing [10]:
Macro support is in the Novell edition of OOo, which is the branch that many other distros include. To use it, simply open an Excel document that includes VBA macros.
Good luck,
Ted
Comment by Ted Haeger — October 31, 2007 @ 8:58 am
What OpenOffice build is the best one to use for the purpose of testing VBA macros on the Mac? I’ve been using NeoOffice 2.2.1 and find that the VBA environment has a good start, but needs a lot of fine tuning. I have examples of code that don’t work as expected. OpenOffice 2.3.1 doesn’t see my JRE even when I point directly to it in Tools > Options. I haven’t tried OO v 2.4, and I heard rumors about the existence of v 3.0. I don’t want to waste time reporting things that have already been fixed.
Thanks.
-Jim
Comment by Jim Gordon — February 11, 2008 @ 10:54 am
@Jim Gordon [12]:
Thanks for your question, Jim. I should know this one, since I am using a Mac nowadays. But, unfortunately, I have not done any such research yet.
I’ll see whether I can get any info from Michael or Noel on this.
–Ted
Comment by Ted Haeger — February 11, 2008 @ 11:04 am
@Jim Gordon [12]:
Sounds interesting - if you can help us analyse the type of problems you are seeing, that would be great. The NeoOffice guys will be doing a new beta of an updated version soon I believe. We track our missing features here:
http://svn.gnome.org/svn/ooo-build/trunk/test/macro/missing_vbafeatures.ods
We’re interested in help improving the analysis there of course, if you want to help out. Mail me: michael.meeks@novell.com.
Comment by Michael Meeks — February 12, 2008 @ 5:57 am
Hi there guys,
Can you tell me how I write a macro that generates a sound when for example a cell reaches a certain value or goes below a certain value?
I´m working online with live floating currencies and I want the computer to ,,let me know” when the exchange rates move ,,to much” in either direction. Can you help me solve this problem?
Best regards,
Stefan
Comment by Stefan Thor — February 12, 2008 @ 10:06 am
@Stefan [15]:
Sorry, I don’t know how to do that. I recommend consulting Microsoft’s documentation for Excel, since that what VB Macros were originally designed for.
–Ted
Comment by Ted Haeger — February 12, 2008 @ 1:23 pm
Stefan,
Please post your question in the Excel forums: http://www.officeformac.com/ProductForums/Excel/ where I am sure you will get a detailed answer.
You can use a web query in Excel (probably Calc) that has a built-in timer and a macro that fires an alert.
-Jim
Comment by Jim Gordon — February 12, 2008 @ 3:10 pm
Thank you very much Ted.
Brg, Stefan
Comment by Stefan Thor — February 13, 2008 @ 12:55 am
That´s excellent, thanks Jim!
-Stefan
Comment by Stefan Thor — February 18, 2008 @ 2:30 pm
How to use macro in openoffice 2.3?
It wont work with same feature as excel has?
Can you please give me the solution
Comment by khushi — March 5, 2008 @ 2:30 am
Hi I have an Excel Macros which updates the test cases entered in the sheet.
How do I use the same macros in Open Office2.3 enviraonment???
Comment by Sana pathan — March 12, 2008 @ 2:53 am
I need help getting my macros to work in Open Office. I imported an excel sheet and can’t get it to work. Can anyone help?
Comment by Laura — May 5, 2008 @ 2:02 pm