System:
Ubuntu 20.04.3 LTS x64 Bit
LibreOffice Version: 6.4.7.2 Build ID: 1:6.4.7-0ubuntu0.20.04.1
Java - Oracle
Java version “17.0.1” 2021-10-19 LTS
Java™ SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot™ 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
Problem: Macro fails on… .
Set oSM = CreateObject(“com.sun.star.ServiceManager”)
Note: using/ run from LibreOffice API
Error Message:
“Error Creating Object.
Module Cannot Be Loaded; invalid format.”
Sub Borders2
Dim oSM As Object, SavePath As String
Dim oDesk As Object 'Objects from the API
Dim oDoc As Object 'Objects from the API
Dim oSheet As Object 'Objects from the API
Dim oItalic As Object
Dim arg()
Dim I As Integer, J As Integer
Set oSM = CreateObject(“com.sun.star.ServiceManager”)
Set oDesk = oSM.CreateInstance(“com.sun.star.frame.Desktop”)
Set oDoc = oDesk.loadComponentFromURL(“private:factory/scalc”, “_blank”, 0, arg())
Set oSheet = oDoc.getSheets().getByIndex(0)
.
.
.
End Sub