+ Reply to Thread
Results 1 to 7 of 7

Need a code to my macro to change format of a chart

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Need a code to my macro to change format of a chart

    Hi guys

    I have this macro to make a automatic chart and give me some values from the data i have (average, sum, min and max).

    What i need is a code to insert in this macro that allows me to change the format of the chart. For example i need to change the type of letter in the axes, the size, if its bold or not, colour, etc, etc. All this is to change in the code itself.

    This is the code:
    Please Login or Register  to view this content.
    Thanks in advance

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

    Re: Need a code to my macro to change format of a chart

    Quote Originally Posted by bazofio View Post
    For example i need to change the type of letter in the axes, the size, if its bold or not, colour, etc, etc.
    Too vague.

    I would suggest you record a macro and you manually make all the changes to the chart. Then the recorded macro could be edited and integrated into your main macro, but that would provide the base code to start from.
    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.

  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Need a code to my macro to change format of a chart

    Thanks AlphaFrog for your reply.
    I already try that but then i dont know where to put the code from the recorded macro in the existing macro. Can you help me out on where should i place it.

    Thanks in advance

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

    Re: Need a code to my macro to change format of a chart

    Quote Originally Posted by bazofio View Post
    Thanks AlphaFrog for your reply.
    I already try that but then i dont know where to put the code from the recorded macro in the existing macro. Can you help me out on where should i place it.

    Thanks in advance
    Post the code of your recorded cart formatting macro.

  5. #5
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Need a code to my macro to change format of a chart

    Here it is a example:
    Please Login or Register  to view this content.
    So now i dont know where do i put this code in the one that i have without breaking it.
    Thanks for the help ;-)

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

    Re: Need a code to my macro to change format of a chart

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Need a code to my macro to change format of a chart

    Thanks AlphaFrog.

    Perfect

+ 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] Struggling to change the axis format of a chart
    By tsakta13ole in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-29-2015, 10:43 AM
  2. VBA Excel 3-D Pie Chart Format, change Material value
    By ljpitre in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2014, 04:59 PM
  3. [SOLVED] help on vba code to change the error date format as standard format mm/dd/yyyy
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2013, 01:10 AM
  4. [1/2 SOLVED] How to Change Format in a Chart
    By Dan86 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-27-2012, 06:51 PM
  5. change the format of a series in a chart
    By CliffD in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-10-2006, 07:35 AM
  6. Why Does Date Format Change on Chart
    By John Taylor in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-14-2005, 02:05 AM
  7. [SOLVED] Why Does Date Format Change on Chart
    By John Taylor in forum Excel General
    Replies: 0
    Last Post: 09-11-2005, 04: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