Advertisement

02.06.2008 at 03:54PM PST, ID: 23143160
[x]
Attachment Details

Adding DataSeries from Array of Numbers (NOT A SHEET)

Asked by sporenza in Microsoft Visual Basic.Net

Tags: VB.Net, MS Office

All,

I am trying to take an array and use this to add a data series to a chart that is already created my code below:

            Dim arr(ArrayLength - 1) As Integer
            Dim j As Integer

            For j = 1 To ArrayLength
                arr(j - 1) = WorksheetName.worksheets(MetricType).range("C" & dataRow).value
            Next

            chartWorkbook.SeriesCollection.Add(source:=

I am not sure how to set the series source to the array.. how do I do this???

or for simple code:
            Dim arr(2) As Integer
           arr={1,1}

            chartWorkbook.SeriesCollection.Add(source:=

THANKS!!!Start Free Trial
[+][-]02.07.2008 at 10:25AM PST, ID: 20843392

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.Net, MS Office
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.07.2008 at 01:27PM PST, ID: 20845446

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 01:56PM PST, ID: 20845716

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 04:40AM PDT, ID: 21261892

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628