Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
graph multiple data ranges | Charts and Charting in Excel | |||
Problem with graph ranges | Charts and Charting in Excel | |||
Named dynamic ranges, copied worksheets and graph source data | Charts and Charting in Excel | |||
variant array containing cel adresses convert to actual ranges-array | Excel Programming |