Don't ask to ask, just ask | |
PerlMonks |
Setting axis data range on Excel chart using Win32::OLEby apple123 (Initiate) |
on Nov 16, 2006 at 22:19 UTC ( [id://584617]=perlquestion: print w/replies, xml ) | Need Help?? |
apple123 has asked for the wisdom of the Perl Monks concerning the following question:
I have written a program that uses Win32::OLE to add data to an Excel file and update a chart with the new data. The examples in Using Win32::OLE and Excel were invaluable, but I'm stuck on one last feature.
I need to adjust the data ranges in the chart to include the newly-added data. I'm using the following code:
This correctly adjusts the data range for the chart Values, but the range for the Category (X) Axis Labels is incorrect as follows: =(Summary!$B$1:$F$1,Summary!$B$1:$G$1) when it should be: =(Summary!$B$1:$G$1) I have also tried using the SeriesCollection->Extend() method, but the results are similar. I've been banging my head on this wall for a while now. Any suggestions? Thanks in advance,
Back to
Seekers of Perl Wisdom
|
|