+ Reply to Thread
Results 1 to 10 of 10

Macros and Charts

Hybrid View

  1. #1
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    To get the supplier names, we need to swap the final two lines of code

    ActiveChart.SetSourceData Source:=Sheets("Working sheet").Range("B2:B8")
    ActiveChart.SeriesCollection(1).XValues = "='Working sheet'!R2C1:R8C1"
    The problem with the error will be due to the chart being the selected item when the macro was run. Cells only exist on the worksheet.

    The code works by working through your list of suppliers and if a new one is found adding a new row into the working sheet. If an existing one is found then it adds one to the total. There is then a sort and the source data for the graph is set.

    Hope this helps.
    Martin

  2. #2
    Registered User
    Join Date
    05-30-2007
    Posts
    15
    It helped a ton. Thanks again.

+ 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