Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Charting data generagted by a Sub. Urgent please.

How to create a chart by using the data generated by a Sub.

I don't want to paste the data on a spreadsheet. I want to plot the data
after it is calculated without pasting it.

Is it possible.


--
beetal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Charting data generagted by a Sub. Urgent please.

It's possible. Create the chart, remove any series it contains by default,
then use this to add and populate each series from arrays of data you've
calculated:

With ActiveChart.SeriesCollection.NewSeries
.Values = MyYArray
.XValues = MyXArray
End With

Note that you are limited to how many characters it takes to represent an
array as a string of the form ={1.234567890,2.345678901,3.456789012}. You
can reduce the length of this string somewhat (see
http://peltiertech.com/Excel/ChartsH...hartData.html).

It's also difficult to debug the code when you're dealing with arrays you
cannot see.

Charts work better with worksheet data. It's easier and better to use
worksheet ranges as chart source data. Put the data into a hidden sheet if
necessary.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______



"BEETAL" wrote in message
...
How to create a chart by using the data generated by a Sub.

I don't want to paste the data on a spreadsheet. I want to plot the data
after it is calculated without pasting it.

Is it possible.


--
beetal



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
Charting Data Karen Charts and Charting in Excel 1 August 18th 09 08:21 PM
Including data in data table but not charting as a series or point pepper76 Charts and Charting in Excel 4 August 2nd 06 03:20 AM
Charting data tonystowe Excel Discussion (Misc queries) 2 April 6th 06 04:22 PM
Charting Data Series vs. Data Points? Tommy Z. Charts and Charting in Excel 4 November 29th 05 11:23 PM
Custom charting - Stacked charting with a line Randy Lefferts Charts and Charting in Excel 3 March 3rd 05 03:10 AM


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