Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
CORRECTED -- One line containing Range("Analysis!B6") was mistakenly inserted
in the code. Correct code reposted below "Stephane Quenson" wrote: The string used for the Range function does not need to be a fixed string. So you could have two cells in the sheet where the chart is, let's say B6 and B7 that contains the last row and last column to consider in the chart. Note that these cells can contain a formula as well, like =COUNT(E1:E1000) for example. Then you could put the following lines in your code: sRangeToDraw = "E1:E" & Range("Analysis!B6") & ",Y1:" & _ Range("Analysis!B7") & Range("Analysis!B6") ActiveChart.SetSourceData Source:=Sheets("Analysis").Range(sRangeToDraw) _ , PlotBy:=xlRows Stephane. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
pie chart & column chart w/same source data | Charts and Charting in Excel | |||
Use detailed data in one worksheet to create summary data as chart source | Charts and Charting in Excel | |||
How do you link chart source data when you copy the chart? | Charts and Charting in Excel | |||
Source data for a Chart | Excel Discussion (Misc queries) | |||
Pie chart source data | Charts and Charting in Excel |