+ Reply to Thread
Results 1 to 2 of 2

Copy Chart Formats using VBA

  1. #1
    Registered User
    Join Date
    04-22-2015
    Location
    California,USA
    MS-Off Ver
    2010
    Posts
    1

    Copy Chart Formats using VBA

    Hi All,
    I am novice to VBA and trying to learn.
    I am creating a simple bar chart and Want to copy the format of the chart and apply to another charts.
    i have used code from the peltiertech blog CopyChartFormatsNotTitles2, but some of the formatting is not working when i run the code:
    -series color is not getting formatted
    - i have used Switched Row/Column while creating the bar chart, this is also not getting mirrored
    -Legends not getting mirrored.
    Let me know if am not enough clear. I have also attached the chart and sample data that i want to use as base.
    and below is the code so far i have tried.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy Chart Formats using VBA

    the code is doing what it is designed to do

    to switch data to columns
    add this line at the start of the cht.chart
    Please Login or Register  to view this content.
    after this the legend works fine
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Replies: 4
    Last Post: 10-01-2014, 03:18 PM
  2. Excel 2007 : Saving as PDF - chart formats
    By Jbentley in forum Excel General
    Replies: 4
    Last Post: 10-07-2009, 01:31 PM
  3. Different Formats, Same Chart?
    By Emote in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-28-2007, 11:55 AM
  4. [SOLVED] Pivot Chart Formats
    By John Francis in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-30-2006, 06:25 PM
  5. Replies: 0
    Last Post: 08-31-2005, 10: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