JohnV Administrator

Joined: 07 Mar 2003 Posts: 8980 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.
| Code: | Sub GetSelectedRange
cr = ThisComponent.getCurrentSelection
Print cr.AbsoluteName
'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)
Print cell.getString
Next
End Sub |
|
|