Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I graph arrays using VBA?

I have some data which is stored in an array. At the moment my VB programme
prints the array into Excel (which is rather time consuming as the array has
8736 entries) then graph it directly from Excel. I have managed to create a
graph using my array but it seems that I can only plot 59 points! Is it
possible to plot more or will I have to print out my array and use Excel to
graph it?
Thanks very much for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default How do I graph arrays using VBA?

Your 59 points limit is probably due to the string length limit in the
series formula. But your values can be dumped to cells quickly like this -

Sub test()
Dim arr(1 To 10000, 1 To 1) As Double
Dim i as long
For i = 1 To 10000
arr(i, 1) = i / 10
Next
ActiveSheet.Range("A1:A" & UBound(arr)).Value = arr

End Sub

If you don't want to use cells at all you could make a named 'vertical'
array and assign that to your series values. Though xl97 & xl2000 would be
limited to 5461 values.

Regards,
Peter T

"Mari__d" wrote in message
...
I have some data which is stored in an array. At the moment my VB

programme
prints the array into Excel (which is rather time consuming as the array

has
8736 entries) then graph it directly from Excel. I have managed to create

a
graph using my array but it seems that I can only plot 59 points! Is it
possible to plot more or will I have to print out my array and use Excel

to
graph it?
Thanks very much for your help



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
How do I graph data daily as a line graph across a calendar format Glani Charts and Charting in Excel 3 November 23rd 07 09:05 AM
Working with ranges in arrays... or an introduction to arrays Glen Excel Programming 5 September 10th 06 08:32 AM
Arrays - declaration, adding values to arrays and calculation Maxi[_2_] Excel Programming 1 August 17th 06 04:13 PM
Creating a graph similar to a stacked column graph Jonathan Charts and Charting in Excel 6 August 4th 06 04:23 PM
Hyperlinkage of one graph with another graph or Drill down graph Sanjay Kumar Singh Charts and Charting in Excel 1 January 3rd 06 12:22 PM


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