Page 1 of 1

Excel macro conversion

Posted: Sat Jul 08, 2017 9:26 pm
by NoelChestnut
Book1.xlsm
(21.88 KiB) Downloaded 195 times
Hello,

I'm hoping that someone can help with this.

I'm trying to get this to work in Calc however I'm having no luck at all.

Can anyone make it work?

Many thanks

Title Edited. A descriptive title for posts helps others who are searching for solutions and increases the chances of a reply (Hagar, Moderator).

Re: Beginner Help

Posted: Sat Jul 08, 2017 9:36 pm
by FJCC
Only very simple macros can be ported from Excel to OpenOffice or LibreOffice. LibreOffice has better compatibility with Excel macros but judging from your signature, you are already using that. If you really need to run this in Calc, you need to rewrite it.

Re: Beginner Help

Posted: Sat Jul 08, 2017 10:09 pm
by NoelChestnut
Yeah I've figured that part out, I am really struggling though hence why I'm here, there doesn't seem to be an abundance of guides/help etc available. Is there anything that could recommend that would help me?

Re: Excel macro conversion

Posted: Sat Jul 08, 2017 11:02 pm
by FJCC
The best resources I know of concerning macros are by Andrew Pitonyak.
You might also consider doing this in a database using the Base component of OpenOffice. That also requires a lot of learning but, if I understand what the macro does, it is the appropriate tool. There is a good Base tutorial here.

Re: Excel macro conversion

Posted: Mon Jul 10, 2017 3:14 pm
by MrLumme
You could rename it from 'xlsm' to 'xlsx'. I haven't hit any problems doing that yet.

Edit: Also note that if you do this, Microsoft Office will call the file corrupt, but OpenOffice will be fine with it.