Weaver
Well-known Member
- Joined
- Sep 10, 2008
- Messages
- 5,197
I wrote some code a while ago that runs a pivot table/pivot chart on a selected set of data, using
but this fails if the defaut chart type isn't compatible with the dataset. I'm trying to use a line graph, so is it possible to:
1 record the current defalut chart type
2 change it to what's required
3 draw the chart and
4 change the default back to what it was.
I found
expression.SetDefaultChart(FormatName)
in the help file but unless you're using a custom autoformat, the only other option is xlBuiltIn.
Any ideas?
Code:
charts.add
1 record the current defalut chart type
2 change it to what's required
3 draw the chart and
4 change the default back to what it was.
I found
expression.SetDefaultChart(FormatName)
in the help file but unless you're using a custom autoformat, the only other option is xlBuiltIn.
Any ideas?
Last edited: