ich möchte 2 Tabellen vergleichen (also nicht 2 Tabellenblätter)
jetzt weiss ich nicht wie ich die zwei geöffneten Tabellen handlen muss.
Es sollen außerdem nach Werten in der einen Datei gesucht und like SVERWEIS an die 2. Übergeben werden.
Ich bin Anfänger und mach das hier seit ca 4 Tagen...

Auszug:
sub oeffnen
dim test as string
dim zahl as string
dim desktop as string
dim url as string
dim oDocument1 as object
dim oDocument2 as object
dim tabelle1 as object
dim tabelle2 as object
dim zelle1 as string
dim zelle2 as string
dim mystring1 as string
dim mystring2 as string
test = ("test.ods")
zahl = ("zahl.ods")
desktop = ("C:\Users\Mega-PC\Desktop\")
url=converttourl(desktop + test )
dim myFileProp() as new com.sun.star.beans.PropertyValue
oDocument1 = StarDesktop.loadComponentFromURL(url, "_blank", 0, myFileProp() )
url=converttourl(desktop + zahl )
dim myFileProp2() as new com.sun.star.beans.PropertyValue
oDocument2 = StarDesktop.loadComponentFromURL(url, "_blank", 0, myFileProp2() )
tabelle1 = oDocument1.sheets.getbyname ("Tabelle1")
tabelle2 = oDocument2.sheets.getbyname ("Zahl1")
zelle1 = mysheet.getCellByPosition (0,0)
zelle2 = mysheet.getCellByPosition (0,0)
myString = zelle1.string
mystring2 = zelle2.string
zelle2.string=myString + mystring2
Wie mache ich weiter um die zwei zu vergleichen?
Wie verwende ich die zwei Dateien?
(Ja, ich habe schon nach Hinweisen gesucht)
Danke