XLS to ODS Macro Import

Discuss the spreadsheet application
Post Reply
CLB
Posts: 28
Joined: Wed May 14, 2008 5:07 am

XLS to ODS Macro Import

Post by CLB »

What must I do to let a file with macro's written in *.xls to work in *.ods

It gives the output as per attachment.

tx
Attachments
Capture.JPG
Last edited by CLB on Mon Jun 02, 2008 10:33 am, edited 1 time in total.
User avatar
Hagar Delest
Moderator
Posts: 32667
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: XLS to ODS Macro Import

Post by Hagar Delest »

Rewrite them.
Or see those threads:
- [Solved] OO 2.4 Calc Compatibility problem with MS Excel
- Can't run a VBA macro from MS Excel file

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.

NB: moved your thread in the Calc forum, it's not a formula issue.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: XLS to ODS Macro Import

Post by Villeroy »

In most cases you have to rewrite everything. The Basic language is almost the same while talking to a completely different thing. There is a "VBA compatibility mode" in StarOffice and some flavours of OOo, but from what I've seen in the forums this does a bad job so you can not say for shure if the code really does the same thing it used to do with the other application.
The most recent example for "VBA compatibility" wasting time: http://www.oooforum.org/forum/viewtopic.phtml?t=71839
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
kingfisher
Volunteer
Posts: 2123
Joined: Tue Nov 20, 2007 10:53 am

Re: XLS to ODS Macro Import

Post by kingfisher »

You will almost certainly have to rewrite the macros in a language recognised by OO. Choices are StarBasic (probably the easiest), Python and Java.
Apache OpenOffice 4.1.9 on Linux
Post Reply