in reply to Re: OLE - updating a chart in an excel spreadsheet
in thread OLE - updating a chart in an excel spreadsheet
I have tried to update the Chart1 sourceData this way as well also get the perl interpreter to crash. No error messages.### Here we update the graphs sourcedata my $Chart1 = $RequestsSheet->ChartObjects("Chart 1"); $Chart1->Activate(); my $name = $Chart1->Name(); print "Chart1 Name: ", $name ,"\n";\ $RequestsSheet->ChartObjects("Chart 1")->Activate(); ############### This line here blows everything up. $Chart1->SetSourceData({Source => '=Data!\$A\$2:\$A\$295'} +);
### Here we update the graphs sourcedata my $Chart1 = $RequestsSheet->ChartObjects("Chart 1"); my $sourceRange = "A1:A295,G1:G295"; my $Chart1Range = $DataSheet->Range($sourceRange); ############### This line here blows everything up. $Chart1->SetSourceData({Source =>$Chart1Range,PlotBy => xl +Columns});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: OLE - updating a chart in an excel spreadsheet
by jmcnamara (Monsignor) on Mar 18, 2004 at 21:45 UTC | |
|
Re^3: OLE - updating a chart in an excel spreadsheet
by Anonymous Monk on Oct 13, 2012 at 00:33 UTC |