Axes(xlCategory).CategoryNames
I am trying to assign labels to the tickmarks on a chart in an Excel module.
I have the following code:
label = "all the same"
For Each tick In chtObj.Chart.Axes(xlCategory).CategoryNames
tick = label
Next
I am getting an error because of a type mismatch. It appears that
chtObj.Chart.Axes(xlCategory).CategoryNames is typed as "Variant/Double".
Can anyone help?
|