+ Reply to Thread
Results 1 to 1 of 1

selecting various data lines to be plotted on same chart

Hybrid View

ssbhardw selecting various data lines... 05-24-2011, 01:51 PM
  1. #1
    Registered User
    Join Date
    04-08-2010
    Location
    toronto,ontario
    MS-Off Ver
    Excel 2003
    Posts
    4

    selecting various data lines to be plotted on same chart

    Sub Macro1()
    '
    ' Macro1 Macro
    '
    Dim i As Integer
    i = 7
     
    For i = 7 To 36
    
      ActiveSheet.ChartObjects("Chart 3").Activate
       With ActiveChart.SeriesCollection.NewSeries
        .Name = ActiveSheet.Range("A" & i)
       .Values = Range("c" & i, "g" & i, "k" & i, "o" & i, "s" & i)
      End With
    Next i
    End Sub
    For the code above the trouble im having is getting the values to work for that range. Can someone please tell me why that notation wont work. I have tried with just one cell .Values = Range("c" & i) and it works but now i need those other data points to be included.
    Last edited by ssbhardw; 05-24-2011 at 03:27 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1