LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to customize error bars by VB code?

Hello NG,


from a Visual Basic (6) project, I need to customize the error bar of a

chart, to get a different value for each data point.


In Excel, this is done with a range reference:


ActiveChart.SeriesCollection(1*).ErrorBar Direction:=xlY, Include:= _
xlPlusValues, Type:=xlCustom, Amount:="=Hoja1!R1C3:R2C3"


but I need to do this by VB code, in order to control a OLE-Chart.
Reference to the datasheet-range is not working:


oGraph.SeriesCollection(1).Err*orBar Direction:=xlY, Include:=xlBoth,
_
Type:=xlCustom, Amount:=oGraph.Application.Dat*aSheet.Range("A1:A3 ")



Any ideas?


Thanks in advance (and sorry for crossposting)


Miguel

 
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
error bars W Chamberlain[_2_] Excel Discussion (Misc queries) 5 September 27th 07 08:55 AM
Format Chart Bars with code? John Charts and Charting in Excel 3 March 21st 07 08:58 PM
How to customize error bars by VB code? [email protected] Charts and Charting in Excel 1 May 31st 05 07:55 PM
Looking for some source code for navigation bars Newbie Excel Programming 1 January 9th 04 01:09 PM


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