Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Can a graph use array data instead of ranges?

I would create a graph manipulating the source data range for x and y.
Is it possible to do this?

And how? I always passed to XValues a range type. But if I an array? I don't want to lean to
worksheet cells.

Thanks in advance, Alex.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can a graph use array data instead of ranges?

Hi Alex,

Currently I am researching the issue, I will get back here and update you
with new information ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can a graph use array data instead of ranges?

Hi Alex,

We can add a chart into the workbook and set its series based on array.

Here is the code you may run on the VBA environment of Excel to see if that
is what you want.

Sub Test()
Charts.Add
ActiveChart.ChartType = xlXYScatterLines
ActiveChart.Location Whe=xlLocationAsObject, Name:="Sheet1"
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).XValues = Array(1, 3, 5, 7, 11, 13, 17,
19)
ActiveChart.SeriesCollection(1).Values = Array(1, 3, 5, 7, 11, 13, 17,
19)
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).XValues = Array(11, 13, 17, 19, 1, 3,
5, 7)
ActiveChart.SeriesCollection(2).Values = Array(1, 3, 5, 7, 11, 13, 17,
19)
End Sub



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Can a graph use array data instead of ranges?

Hi Alex,

Have you tried my suggestion?
Did that works for you?
If you still have any cocern on this issue, please feel free to let me know.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
Array formula: how to join 2 ranges together to form one array? Rich_84 Excel Worksheet Functions 2 April 1st 09 06:38 PM
graph multiple data ranges lindy.coyle Charts and Charting in Excel 1 November 11th 05 01:46 AM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM
variant array containing cel adresses convert to actual ranges-array Peter[_21_] Excel Programming 5 December 10th 03 09:50 PM


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