Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,355
Default Extracting Error bar definition

I'd like to programmatically extract the error bar definition for a bunch of
series within a chart. I can get the series formula using

..SeriesCollection(k).Formula

What do I need to use to get the error bar definition?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Extracting Error bar definition

This is not possible in VBA, at least not without using SendKeys*. VBA
cannot read the values of the error bars, and doesn't even know there are
separate X and Y error bars in an XY chart. In the UI you can select the X
and Y error bars and format them separately, but VBA only has an ErrorBars
property, and therefore must format X and Y error bars identically.

*You could use the much maligned (and deservedly so) SendKeys method to
select the data range for the error bars in the error bar dialog's input
boxes. I've never been desperate enough to try this.

Obviously there's room for improvement.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Barb Reinhardt" wrote in message
...
I'd like to programmatically extract the error bar definition for a bunch
of
series within a chart. I can get the series formula using

.SeriesCollection(k).Formula

What do I need to use to get the error bar definition?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,355
Default Extracting Error bar definition

Thanks so much! < /sarcasm I had a feeling that was it.

"Jon Peltier" wrote:

This is not possible in VBA, at least not without using SendKeys*. VBA
cannot read the values of the error bars, and doesn't even know there are
separate X and Y error bars in an XY chart. In the UI you can select the X
and Y error bars and format them separately, but VBA only has an ErrorBars
property, and therefore must format X and Y error bars identically.

*You could use the much maligned (and deservedly so) SendKeys method to
select the data range for the error bars in the error bar dialog's input
boxes. I've never been desperate enough to try this.

Obviously there's room for improvement.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Barb Reinhardt" wrote in message
...
I'd like to programmatically extract the error bar definition for a bunch
of
series within a chart. I can get the series formula using

.SeriesCollection(k).Formula

What do I need to use to get the error bar definition?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Extracting Error bar definition

VBA cannot even distinguish between X and Y error bars when formatting. They
didn't hook up error bars into the object model very tightly.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Barb Reinhardt" wrote in message
...
Thanks so much! < /sarcasm I had a feeling that was it.

"Jon Peltier" wrote:

This is not possible in VBA, at least not without using SendKeys*. VBA
cannot read the values of the error bars, and doesn't even know there are
separate X and Y error bars in an XY chart. In the UI you can select the
X
and Y error bars and format them separately, but VBA only has an
ErrorBars
property, and therefore must format X and Y error bars identically.

*You could use the much maligned (and deservedly so) SendKeys method to
select the data range for the error bars in the error bar dialog's input
boxes. I've never been desperate enough to try this.

Obviously there's room for improvement.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Barb Reinhardt" wrote in
message
...
I'd like to programmatically extract the error bar definition for a
bunch
of
series within a chart. I can get the series formula using

.SeriesCollection(k).Formula

What do I need to use to get the error bar definition?

Thanks






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
extracting characters at a specified limit to seperate cells tevid Excel Discussion (Misc queries) 6 January 22nd 07 09:26 PM
Ignoring Rows When Extracting Data From One Worksheet To Another Jim J. Excel Worksheet Functions 2 May 8th 06 04:55 PM
Extracting First Name Ruan New Users to Excel 12 February 15th 06 05:41 PM
dropdownlist- I want user to choose a # but can I add definition Chopchop Excel Discussion (Misc queries) 6 June 23rd 05 09:16 PM
Extracting info from word and displaying in an excel spreadsheet Drew Excel Discussion (Misc queries) 0 March 7th 05 03:49 AM


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