ich bin Neuling auf dem Gebiet der VBA Makros. Ich habe mich ein wenig eingelesen und einige Beispiele durchexerziert, beispielsweise dieses hier: https://forum.openoffice.org/en/forum/v ... =45&t=3490
Ich habe das auch soweit reproduzieren können.
Code: Alles auswählen
REM ***** BASIC *****
Sub Main
rem -------------------------------------------------------
rem - Init import URL
dim xmlurl as string
xmlurl = "file:///C:/Temp/payments.xml"
rem -------------------------------------------------------
rem - Import payments
dim properties(0) as new com.sun.star.beans.PropertyValue
properties(0).Name = "FilterName"
properties(0).Value = "Calc_Payments"
dim doc As Object
doc = StarDesktop.loadComponentFromURL(xmlurl, "_blank", 0, properties())
End Sub
Viele Grüße
Arnoldz