Skip to content

bUTLChartSeries - Name fails on non-Range name #33

@byronwall

Description

@byronwall

The bUTLChartSeries class exists to provide an interface to interpret the the SERIES formula and get ranges for the XValues, Values, and Name. This provides the basis for other dependent features (e.g. Flip XY) where you need Ranges in order to make changes. The underlying Excel Series class is deficient in this regard.

This bUTLChartSeries class fails when the Name of a chart is a string and not an actual Range. This can be easily done by entering ="TEST" into the Select Data interface. The problem is that there is no underlying Range for the name which is the underlying type of Name.

The same failure will happen if an array is used instead of a Range for any of the other fields.

Somehow this class needs to be able to handle these different scenarios. They are common enough that they need to be supported. This will likely require tracking what type of data is underlying and providing some sort of Variant or other variable type to handle the different possibilities.

It might also be possible to simply store the string part of the SERIES formula and then dump that back in if the object is not defined.

Line where issues occur: https://github.com/byronwall/bUTL/blob/master/src/code/bUTLChartSeries.vba#L123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions