Linux VBA : access external so library tested with windows version

with reference to previous discussion

do you know if recent versions of LibreOffice Ubuntu (linux) have the capability to call external so libraries ?
I wish to move VBA for Windows to Ubuntu / Linux, the original (Windows) VBA code includes

Private Declare Function LoadLibrary Lib “kernel32” alias “LoadLibraryA” (ByVal lpLibName As String) As Long
Global LibLoad As Long

Sub MyTest()

if LibLoad = 0 then
LoadLibrary(“mylib.dll”)
LibLoad = 1
endif

End Sub

Do you know an equivalent method working in Ubuntu / Linux to load mylib.so ?

Thank you very much for help.

What exactly does mylib.so do?

it’s an external application (in this case a shared library) which provides additional features (i.e. numerical solvers etc.) not available in LibreOffice…

I ask, because maybe you can call it from Python. LibreOffice has very good support for Python.

yes, that’s another option,
at present Excel (Office) has limited support for Python so I did hope to maintain my VBA which, on Windows, works on both Excel and LibreOffice

There is none. Basic’s DLL manager is only implemented on Windows currently. There is tdf#147377 which would allow to support it on any platform.

thank you for the comment,
I did fear VBA has limited support in Linux versions,
still I think scripts are one of the best features in LibreOffice and I hope a solution will be available…

In fact, we don’t have much difference of VBA support level between Windows and Linux. The Declare statement is not a VBA-related feature.

I agree, but Declare makes the process to load external plugins much less complex…