H
Harley Feldman
I have two issues with pivot charts.
1) I create a pivot table and chart with VB. I want thick lines on the chart, so I do as follows:
For i = 1 To .SeriesCollection.Count
.SeriesCollection(i).Select
With Selection.Border
.Weight = xlThick
End With
Next
This works great. However, upon selecting a Page Field value from the drop down created automatically on the chart, the new version of the chart has thin lines. Is there a way to tell Excel to create thick lines as a default?
2) I want the pivot chart to use a time scale. If I use the following line:
.Axes(xlCategory, xlPrimary).CategoryType = xlTimeScale
I receive the following message: "Invalid procedure call or argument". If I use this same code on a chart created from a table, I receive no message and it works fine. There must be some problem using pivot charts that I don't understand.
Harley
1) I create a pivot table and chart with VB. I want thick lines on the chart, so I do as follows:
For i = 1 To .SeriesCollection.Count
.SeriesCollection(i).Select
With Selection.Border
.Weight = xlThick
End With
Next
This works great. However, upon selecting a Page Field value from the drop down created automatically on the chart, the new version of the chart has thin lines. Is there a way to tell Excel to create thick lines as a default?
2) I want the pivot chart to use a time scale. If I use the following line:
.Axes(xlCategory, xlPrimary).CategoryType = xlTimeScale
I receive the following message: "Invalid procedure call or argument". If I use this same code on a chart created from a table, I receive no message and it works fine. There must be some problem using pivot charts that I don't understand.
Harley