Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50110

Reading chart attributes in VBA for a spreadsheet documenter tool

$
0
0
I often get complex spreadsheets to amend and extend. As they were written in haste by others, the big task is understanding them.
I wrote a reporter that gets most attributes from most objects; this brings everything into one place rather than use dozens of diablog boxes. The output is also useful reference for creating new code in VBA - you can see the object names and value names without having to try to find a complete object diagram (if you know of one PLEASE say where).

Anyway I have a chart with datatable applied. This can be done manually or using VBA:
Code:

    ActiveChart.SetElement (msoElementDataTableNone)            ' 500
    ActiveChart.SetElement (msoElementDataTableShow)            ' 501
    ActiveChart.SetElement (msoElementDataTableWithLegendKeys)  ' 502

I want my reporter to show this attribute. But I see only SetElement, and no GET, although the thing is described as Read/Write. As so many characterictics use SetElement, I've no idea how to fetch and unravel the datatable option or the others that might be interesting.

Can you help, please?

Viewing all articles
Browse latest Browse all 50110

Trending Articles