beim Aufruf des Dialoges bekomme ich die Fehlermeldung: Objektvariable nicht belegt. Was hab ich falsch gemacht?
Danke für Eure Hilfe
Gruß Jörg
Code: Alles auswählen
omahnungsdatum = oDialog4.getControl("TextField1")
Code: Alles auswählen
Public oDialog4 as Object
Public osheet as Object
Public oZelle as Object
Public mycell as Object
Public mahnung1 as Object
Public mahnung2 as Object
Public mahnung3 as Object
Dim ostatus as Object, omahnungsdatum as Object, oersteMahn as Object, ozweiteMahn as Object, odritteMahn as Object, oZins as Object
sub Dialog4
omahnungsdatum = oDialog4.getControl("TextField1")
ostatus = oDialog4.getControl("TextField2")
oersteMahn = oDialog4.getControl("TextField3")
ozweiteMahn = oDialog4.getControl("TextField4")
odritteMahn = oDialog4.getControl("TextField5")
oZins = oDialog4.getControl("TextField6")
odoc = ThisComponent
osheet = odoc.Sheets().getByName("Tabelle12")
oZelle = osheet.getCellRangebyName("H25")
mycell = osheet.getCellRangebyName("G24")
mahnung1 = osheet.getCellRangebyName("K25")
mahnung2 = osheet.getCellRangebyName("K26")
mahnung3 = osheet.getCellRangebyName("K27")
DialogLibraries.loadLibrary("Standard")
oDialog4 = CreateUnoDialog(DialogLibraries.Standard.Dialog4)
oDialog4.execute
end sub