![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Michigan USA
Posts: 198
|
I'm using a doughnut chart, with my 'data labels' containing the value of each piece of data. I currently add a text box in the center area of the doughnut and manually type in the total of the data. For example, if my doughnut has 4 values, 11, 18, 29 & 36, I manually enter their sum, 94, in a text box in the center. Every month the data changes, and I'm hoping there is a way to use 'sum of' in the center of my doughnut, or something similar.
Thanks for any & all help! Jen |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Quote:
Name the range where your chart gets it's data from. The range feeding my chart is named "myRange". Now, you need to put this code in the [Worksheet that is holding the chart]'s class module (let me know if you need more clarification for this, but basically you go to the VB window, double-click on the sheet that is holding the chart, select "Worksheet" from the left drop-down at the top of the window, and "Change" from the right drop-down. When [if] you paste the code below, do not include the first line).
Hope this helps, Russell [ This Message was edited by: Russell Hauf on 2002-04-10 16:32 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|