PC Review


Reply
Thread Tools Rate Thread

charts, data in arrays, can same be done for ErrorBar figures?

 
 
Matthew Dodds
Guest
Posts: n/a
 
      23rd Apr 2008
Hi folks,

I have some charting code in which the data for the chart is specified
as a formula (eg =SERIES("firstData",
{"NTC","11","12","13","14","15","21","22","23","24","25"},
{0,8,15,17,10,35,8,15,18,11,28},1))

Everything works well with the exception of the corresponding error
bar data; I can find no way of receovering this from the worksheet, so
the charts maintain this reference to a range.

Has anyone devised a solution to this? It would make writing code to
edit the data displayed by a chart much more straightforward.

Thanks in advance for your every suggestion

Matthew
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      23rd Apr 2008
Hi Matthew,

I'd also be interested to know how to read Custom +/- error bar values, in
particular the source range if not coded values.

If you already know the source or values and merely want to remove links to
cells follow this -

Record a macro to (re)apply your error bars and source data.

Look at the arguments "Amount" and/or "MinusValues". Instead of the recorded
address you can replace these with an array. If say your "Amount" refers to
A11 (or R1C1 style) do this

vArr = application.transpose(range("A11"))
amount:=vArr

Once you've got your array(s) adapt the macro to non-recorded style (in
effect qualify errorbars to the series) and replace the address(es) with
your array(s).

Keep in mind the absolute max 255 characters limit in the arrays incl commas
& brackets (same limit also applies to each section of the series formula).

Regards,
Peter T

"Matthew Dodds" <(E-Mail Removed)> wrote in message
news:58d32e86-8a18-43f8-9cec-(E-Mail Removed)...
> Hi folks,
>
> I have some charting code in which the data for the chart is specified
> as a formula (eg =SERIES("firstData",
> {"NTC","11","12","13","14","15","21","22","23","24","25"},
> {0,8,15,17,10,35,8,15,18,11,28},1))
>
> Everything works well with the exception of the corresponding error
> bar data; I can find no way of receovering this from the worksheet, so
> the charts maintain this reference to a range.
>
> Has anyone devised a solution to this? It would make writing code to
> edit the data displayed by a chart much more straightforward.
>
> Thanks in advance for your every suggestion
>
> Matthew



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA ErrorBar method does not allow custom minusvalues Alex Microsoft Excel Programming 0 8th Aug 2008 10:41 AM
Change errorbar series data from vba jnewby72 Microsoft Excel Programming 1 11th Sep 2006 03:44 AM
Paste figures/charts from Excel to Word =?Utf-8?B?RWJhcg==?= Microsoft Excel Discussion 1 5th May 2006 05:52 PM
Using Arrays as source data for charts =?Utf-8?B?TUpIMjM2OQ==?= Microsoft Excel Programming 0 28th Mar 2006 03:32 PM
Making charts from arrays in VBA =?Utf-8?B?QWxpIEJhYmE=?= Microsoft Excel Charting 3 30th Aug 2005 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:03 AM.