I use this code for selecting textTable in writer. How modify this macro for extending selection from this selected table to previous paragraph before table and next paragraph after table ?
Using oVC.goDown(n, true) or oVC.goUp(n,true) not work.
d=thisComponent
t=d.textTables.getByName("Tabella1")
oVC= d.currentController.viewCursor
oCell=t.getCellByPosition (0,0)
oVC.gotoRange(oCell,false)
oVC.gotoEnd(True)