I'm hoping someone has an answer for this:

VB Code:
  1. Private Sub CmdChart_Click()
  2.  
  3. 'Create the new chart
  4. Dim Newchart As Chart
  5.  
  6. Set Newchart = Charts.Add '(After:=Charts(Charts.Count))
  7.  
  8. 'Change the Name
  9. Newchart.Name = "Pipeline Summary"
  10.  
  11. 'Create a series for the chart
  12.  
  13. Dim TheSeries As Series
  14. Newchart.SeriesCollection.Add _
  15. Source:=Worksheets("Pipeline").Range("K$12:N$50") 'chart data range
  16.  
  17. Set TheSeries = Newchart.SeriesCollection(1)
  18.  
  19. 'Change the chart type
  20. TheSeries.ChartType = xl3DPie
  21. 'Change the series title
  22. TheSeries.Name = "Pipeline Info"
  23.  
  24. 'Data formatting
  25. With TheSeries
  26. .XValues = _
  27.    Worksheets("Pipeline").Range("K$11:N$11") 'chart labels
  28.    .HasDataLabels = True
  29.     .DataLabels.ShowValue = True
  30.     .DataLabels.Font.Italic = True
  31.     .DataLabels.Font.Size = 14
  32. End With
  33.  
  34. 'Modify the legend
  35. With Newchart
  36. .HasLegend = True
  37. .Legend.Font.Size = 14
  38. End With
  39.  
  40. 'modify the 3D view
  41. With Newchart
  42. .HasLegend = True
  43. .Elevation = 45
  44. End With
  45.  
  46. 'format the chart title
  47. With Newchart.ChartTitle
  48. .Font.Bold = True
  49. .Font.Size = 18
  50. .Border.LineStyle = XlLineStyle.xlContinuous
  51. .Border.Weight = XlBorderWeight.xlMedium
  52. End With
  53.  
  54. 'format the plot area
  55. With Newchart.PlotArea
  56. .Interior.Color = RGB(255, 255, 255)
  57. .Border.LineStyle = XlLineStyle.xlLineStyleNone
  58. .Height = 450
  59. .Width = 450
  60. .Top = 75
  61. .Left = 25
  62. End With
  63. End Sub

The chart itself displays, but only contains the values of K12:K50, instead of everything from K12 - N50. I need it to display the SUM of the values in K12-K50, L12-L50, etc until N12-N50, then display those totals in the chart. Can someone help?