+ Reply to Thread
Results 1 to 2 of 2

Excel VBA Loop Every Chart and Every Series and Change Y Values

  1. #1
    Registered User
    Join Date
    09-16-2018
    Location
    Alabama
    MS-Off Ver
    2016
    Posts
    1

    Excel VBA Loop Every Chart and Every Series and Change Y Values

    Hello,

    I am trying to change the Y values of every chart in my worksheet. I have many, many charts each with 3 series named "Data", "Min" and "Max".
    Each chart is named "C3", "C4", etc.
    If the series name is "Data" I want it to grab the information from sheet "Summary" from columns L to AO for the row number of the Data double and same can be said for Min and Max.

    Here is what I have:

    Please Login or Register  to view this content.
    I am getting Run-Time error '1004': Application-defined or object-defined error

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Excel VBA Loop Every Chart and Every Series and Change Y Values

    When you get the error, what line of code is highlighted by the debugger?

    Where is NumOfChtsPlusTwo defined?

    You're missing a few quotes in these lines.
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to change the color of all series in an excel chart in one go.
    By Mz2 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-27-2021, 07:42 PM
  2. Change Default Colors in Excel 2010 Chart Series?
    By parodytx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2015, 12:07 PM
  3. Excel column chart colors based on values of a different series
    By brokerbevo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 01:17 PM
  4. [SOLVED] Cant make Excel Chart to use Named Range for Series values in VBA
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2012, 07:26 AM
  5. Change Chart Series values in VBA
    By testar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2006, 12:26 PM
  6. [SOLVED] Create new series (on the same chart) for every change of values in a combob
    By uriel78 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-14-2005, 08:06 PM
  7. Replies: 1
    Last Post: 01-17-2005, 01:06 PM

Tags for this Thread

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