> -----Original Message----- > From: technik_...@jrsch.de [mailto:technik_...@jrsch.de] > Sent: Thursday, September 26, 2019 12:14 PM > To: Open Office > Subject: Makro: Zugriff auf Tabelle im Textdokument > > Hallo, > > ich habe ein Textdokument mit mehreren Tabellen und ich habe bei > Dannenhöfer gelesen.:-) > > Ich will > > 1. dass der Cursor zu einer Zelle springt: > > ... > myTable=myTables.getByIndex(i) > x=myTable.getCellByPosition(1 , f) > myViewCursor.gotoRange(x,false) > ... > > funktioniert nicht.
myTables = ThisComponent.Texttables myTable=myTables.getByIndex(i) x=myTable.getCellByPosition(1, f) t_cur = x.Text.CreateTextCursor myViewCursor = ThisComponent.GetCurrentController.ViewCursor myViewCursor.gotoRange(t_cur,false) > 2. Den Text in der Zelle Fett formatieren > myTables = ThisComponent.Texttables myTable=myTables.getByIndex(i) x=myTable.getCellByPosition(1, f) t_cur = x.Text.CreateTextCursor t_cur.GotoEnd(True) t_cur.CharWeight = 150 Gruß Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-de-unsubscr...@openoffice.apache.org For additional commands, e-mail: users-de-h...@openoffice.apache.org