#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Chart


Hi all,

Is it possible to code for a chart comparing average value of
different fields in a sheet without adding a new field in that shee
for the sum/average values?

To draw the chart, currently I use this code:

Set shtRep3.Name = "Report3"

POPULATEDATA (\"REPORT3\"

shtRep3.Range("A1:B4").Select
Charts.Add
ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData Source:=Sheets(strFruitName).Range("A1:B4")
PlotBy:=xlColumns
ActiveChart.Location Whe=xlLocationAsObject, Name:="Report3"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "Completion Time"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "Urgency"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).xlTitle.Characters.Text = "Sales"
End With
ActiveChart.Legend.Select
Selection Delete
End Sub

But stuck with the PopulateData procedure, as how to calculat
sum/average from the source sheet and use it in the chart.Please hel
me out!, thanks.


mann

--
m2649813
-----------------------------------------------------------------------
m26498130's Profile: http://www.excelforum.com/member.php...fo&userid=3389
View this thread: http://www.excelforum.com/showthread.php?threadid=54355

Reply
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
In Office 2007 can't see chart series values unless chart unprotec Carl Charts and Charting in Excel 0 October 28th 09 03:31 AM
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Charts and Charting in Excel 2 March 6th 09 04:43 PM
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Setting up and Configuration of Excel 1 March 6th 09 01:57 AM
chart from pivot data does not update x-axis bar chart values - bug jason gers Excel Discussion (Misc queries) 0 April 3rd 07 06:34 PM
Huge differences in chart values screws my bar chart scale up. Sirritys Charts and Charting in Excel 2 June 13th 06 10:33 AM


All times are GMT +1. The time now is 03:41 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"