The MS VBA and the API+StarBasic are not compatibile. You must use the native fileformats and must rewrite all of your macros based on the Application Programming Interface of the AOO, if you want work with the macros efficiently in the Apache OpenOffice.
Or you can try the LibreOffice: it has a littlebit higher compatibility with the MS VBA macro codes.
But it is strongly recommended to use the International Standard, native ODF fileformats anyway.
Last edited by Zizi64
on Sat Mar 25, 2017 9:31 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LibreOffice4.4.7 - Portable versions: LO3.3.0-LO5.3.2 and AOO4.1.3; on Win7x64Prof.
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.