+ Reply to Thread
Results 1 to 4 of 4

About SerriesCollection

Hybrid 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.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: About SerriesCollection

    Is this the same question as http://www.excelforum.com/excel-prog...ic-charts.html ?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

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

    Re: About SerriesCollection

    Hi Arlette,

    The two posts are related, yes, but the questions are different.

    Here I specifically ask why it's not the same.

    This is the thread related to charts after all. But my problem is more with VBA programming. I didn't saw many post about programmation in this thread yet.

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

    Re: About SerriesCollection

    Never mihnd, it'S working either way.

+ 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