I'm making progress toward a LibreOffice Basic macro to increment a spreadsheet chart's data range. 
First task is to get the range; here's what I've got:
Sub Main
Dim Doc As Object
Dim Charts As Object
Dim Chart as Object
Dim chartData as Object
Dim RangeAddress(0) as new com.sun.star.table.CellRangeAddress
Doc = ThisComponent
Charts = Doc.Sheets(0).Charts
Chart = Charts.getByIndex(0).EmbeddedObject
chartData = Chart.Data
End Sub
The chartData object almost contains what I need, but not quite:
Data  Object(0 to 3)
...
RowDescriptions(0 to 3)
...
What I need is the piece of data saying that my data consists of rows 2 through 5 (row 1 contains 
the header). Any ideas?
TIA, Jonathan
 
Context
- Basic Macro to Increment Chart's Range: Progress · Jonathan Levi
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.