Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Update data and Y error bars in a chart

I'm using the following methodology for updating a number of charts in a
workbook. The methodology works but I'm wondering if there is a better way
to update the data in a number of charts in a workbook as well as update the
Y error bars for a number of data series in a chart?

For i = 1 To 10
GA(i, 4) = "U5:U" & LRA(i, 3) & ",AD5:AD" & LRA(i, 3) & ",AF5:AF" & LRA(i,
3) & ""
GA(i, 5) = "AE6:AE" & LRA(i, 3) & ""
GA(i, 6) = "AG6:AG" & LRA(i, 3) & ""

Sheets(GA(i, 3)).Select
ActiveChart.PlotArea.Select
ActiveChart.SetSourceData Source:=Sheets(GA(i, 2)).Range(GA(i, 4)), _
PlotBy:=xlColumns

ActiveChart.SeriesCollection(1).Select
ActiveChart.SeriesCollection(1).ErrorBar Direction:=xlY,
Include:=xlBoth, _
Type:=xlCustom, Amount:=Sheets(GA(i, 2)).Range(GA(i, 5)), _
MinusValues:=Sheets(GA(i, 2)).Range(GA(i, 5))
ActiveChart.SeriesCollection(2).Select
ActiveChart.SeriesCollection(2).ErrorBar Direction:=xlY,
Include:=xlBoth, _
Type:=xlCustom, Amount:=Sheets(GA(i, 2)).Range(GA(i, 6)), _
MinusValues:=Sheets(GA(i, 2)).Range(GA(i, 6))

Next i

Thanks in advance,
Raul

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
Customise error bars on individual bars in a bar chart 2007 Millie Charts and Charting in Excel 2 April 25th 09 04:16 AM
Custom error bars bug -- copy pasting chart does not update refere badpazzword Charts and Charting in Excel 5 April 12th 09 02:11 PM
Excel 2007: continuously update scatter chart from scroll bars JimS. Excel Discussion (Misc queries) 1 June 9th 08 10:59 PM
How to add error bars to 3-D chart Shijia Excel Discussion (Misc queries) 2 November 20th 07 09:48 PM
How to I incorporate SD from a data series into chart error bars? carlosPharm.D Charts and Charting in Excel 5 August 2nd 05 09:27 PM


All times are GMT +1. The time now is 10:52 PM.

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

About Us

"It's about Microsoft Excel"