Results 1 to 4 of 4

About SerriesCollection

Threaded View

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    Canada
    MS-Off Ver
    Access 2007 Excel 2007
    Posts
    48

    About SerriesCollection

    Hello,

    why


    With xlChartObj(4)
    .ChartType = xlPieExploded
    
    .SeriesCollection.NewSeries
    .SeriesCollection(1).Name = "='Sheet1'!$A$4"
    .SeriesCollection(1).Values = "='Sheet1'!$H$4:$J$4"
    .SeriesCollection(1).XValues = "='Sheet1'!$H$3:$J$3"
    
    .ApplyLayout (6)
    
    .ChartTitle.Text = "Chart Example"
    End With
    works

    and

    With xlChartObj(4)
    .ChartType = xlPieExploded
    
    .SeriesCollection.NewSeries
    .SeriesCollection(1).Name = "='"  & xlSheet(4).Name & "'!" & strValueName
    .SeriesCollection(1).Values = "='"  & xlSheet(4).Name & "'!" & strValues
    .SeriesCollection(1).XValues = "='"  & xlSheet(4).Name & "'!" & strValueString
    
    
    .ApplyLayout (6)
    
    .ChartTitle.Text = "Chart Example"
    End With
    doesn't while the content is the same ?

    How can I assign a range tp my series ?

    Daniel

    Moderator's Edit: Use code tags when posting code. To do so in future, select your code and click on the # icon at the top of your post window.
    Last edited by dagagnon; 12-10-2012 at 02:42 PM.

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