openoffice.org,openoffice-writer,openoffice-basic
copied answer from https://forum.openoffice.org/en/forum/viewtopic.php?f=45&t=77377 Sub select_Cell_Texttable oTexttables = thiscomponent.texttables oTable1 = oTexttables.getByName("Table1") ocell = oTable1.getcellbyPosition(0,0) 'ocell = oTable1.getcellbyName("A1") oViewCursor = ThisComponent.CurrentController.ViewCursor oViewCursor.gotoRange(ocell,false) oViewCursor.goright(1,true) oViewCursor.goleft(1,true) end sub ...