I need to select a fragment in a table cell. I do this:
- Code: Select all Expand view RUN
- oTb := oWord:ActiveDocument:Tables
oRng:=oTb:Item(1):Cell(x,y):Range
oRng:Select()
oWrd:Selection:Find:Execute('Keyword') //keyword for getting coordinates
dim:={{oTb:Item(cnt):Cell(st,3):Start,oWrd:Selection:Start-1}, ;
{oWrd:Selection:End+1, oTb:Item(cnt):Cell(xt,y):End}} //coordinates of 2 sections of the cell
oRng:=&oObj:Range(dim[1,1], mrg[1,2]) //next I try to select one or another part of the cell
oRng:Select()
However, the entire cell is selected. What am I doing wrong. What am I doing wrong ?