|
Re: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCurs: msg#00132openoffice.devel.general
Paul Veuve wrote: Thanks for your help Juergen.Paul, You need the address. I use this function: Function getLastUsedColRow(oSheet as Object) as Integer Dim oCell As Object Dim oCursor As Object Dim aAddress As Variant oCell = oSheet.GetCellbyPosition( 0, 0 ) oCursor = oSheet.createCursorByRange(oCell) oCursor.GotoEndOfUsedArea(True) aAddress = oCursor.RangeAddress lastCol = aAddress.EndColumn lastRow = aAddress.EndRow End Function I hope this helps. Sincerely, Gerrit Jasper |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Calc - Get cell formula resolved: 00132, Paul Veuve |
|---|---|
| Next by Date: | RE: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursor: 00132, Paul Veuve |
| Previous by Thread: | RE: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursori: 00132, Paul Veuve |
| Next by Thread: | RE: Calc C#CLI programming - Get the used range in a sheet - XUsedAreaCursor: 00132, Paul Veuve |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |