Joined: 07 Mar 2003
Location: Lexinton, Kentucky, USA
|Posted: Tue Nov 30, 2010 10:18 am Post subject:
|Don't do Java any more but here's a Basic example.
cr = ThisComponent.getCurrentSelection
'Assumes a single column in the selection.
'Note that the first cell in the selection is always at position 0,0
'no matter where the range actually is.
For x = 0 To cr.Rows.Count-1
cell = cr.getCellByPosition(0,x)