+ Reply to Thread
Results 1 to 6 of 6

Changing Chart Titles then looping to change on every sheet

  1. #1
    Registered User
    Join Date
    06-17-2015
    Location
    missouri
    MS-Off Ver
    2010
    Posts
    16

    Changing Chart Titles then looping to change on every sheet

    I have come up with a rudimentary macro that changes the title of a chart to whatever is in cell F2
    Every sheet in the workbook is set up so that the name of the chart should be whatever is in F2
    however, the macro only works on the active sheet. here it is
    Please Login or Register  to view this content.
    I want it to do this task but on every sheet without me manually going through and entering the keyboard shortcut on every sheet. thanks all!

  2. #2
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Changing Chart Titles then looping to change on every sheet

    Hi jrembold,

    Just Try this code. This will loop through all the sheets and change the title to Activesheet Range of F2

    Please Login or Register  to view this content.
    Ravikumar,

    * Please Add Reputation if solved.

  3. #3
    Registered User
    Join Date
    06-17-2015
    Location
    missouri
    MS-Off Ver
    2010
    Posts
    16

    Re: Changing Chart Titles then looping to change on every sheet

    Thanks for the help Fshbet.
    I tried it and the debug came back as saying "Run time error '1004' -- Application defined or object defined error" and had the

    With Sheets(i).ChartObjects(1).Chart

    line highlighted.

    any thoughts?
    thanks again

  4. #4
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Changing Chart Titles then looping to change on every sheet

    Hi jrembold,

    just change the code to this,

    the error because some sheets doesn't have charts so only that error.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-17-2015
    Location
    missouri
    MS-Off Ver
    2010
    Posts
    16

    Re: Changing Chart Titles then looping to change on every sheet

    thanks again! would you have any idea how to successfully combine this macro with looping in with a large handful of other macros so that we can have each individual macro do its job on one sheet then cycle through all the sheets and do the job with one shortcut?

  6. #6
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Changing Chart Titles then looping to change on every sheet

    Hi, jrembold,

    ya if u want just attach the sheet so that i can combine all the macro.

+ 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. Globally Change All Chart Titles' Substring with Macro?
    By parodytx in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 03-20-2013, 11:28 AM
  2. Replies: 4
    Last Post: 06-22-2011, 09:50 AM
  3. Changing Chart Titles causes Excel Shut Down
    By janetlyn in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 03-26-2009, 11:36 AM
  4. Setting chart titles from sheet name and workbook name
    By banana97 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2007, 09:57 AM
  5. [SOLVED] Want to use same Chart against changing data and variable titles?
    By J Manning in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-12-2005, 08:05 AM

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