LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Charting question

So I am trying to Chart data from numerous worksheets and I am not sure how
this works. So lets say I have a workbook with 3 worksheets named "Build1",
"Build2", "Build3". Each of these sheets holds the same type of data, but
the data is all related to that specific build. On each sheet, I have
several test names, with performance-related data.

On a separate sheet i want to put a scatter chart, that has the test names
on the X axis, times on the y axis, with each series as a different color.

So far I have this:

myChart = myWorkbook.Charts.Add(missing, missing, missing,
missing) as Excel.Chart;
myExcelApp.ActiveChart.ChartType =
Excel.XlChartType.xlXYScatterLines;

And I have this, but it doesn't seem to do what I want...

myExcelApp.ActiveChart.SetSourceData(myWorksheet.g et_Range("A2",
"D12"), Excel.XlRowCol.xlRows);

myExcelApp.ActiveChart.Location(Excel.XlChartLocat ion.xlLocationAsObject,
"Sheet_Name");

Question:
1. How do I have the chart grab the sourcedata from numerous sheets?









 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Charting question Dabears70 Excel Discussion (Misc queries) 1 April 27th 07 07:44 AM
Charting Question BenWeber Charts and Charting in Excel 0 May 16th 06 11:24 PM
vba charting question [email protected] Charts and Charting in Excel 4 February 24th 06 11:54 PM
VBA charting Question Tom Ogilvy Excel Programming 1 November 14th 03 02:56 AM


All times are GMT +1. The time now is 07:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"