+ Reply to Thread
Results 1 to 3 of 3

Automating Graphs in Excel

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Automating Graphs in Excel

    Hello All,

    I have some tasks that I run manually every time I run my models and was hoping to automate some of them. Once the model is run, it generates some graphs, I would to automate the following functions:
    - Create a pivot chart per filter item
    - Change Title of chart to Selection on Filter
    - Change the axis ratio to be as close to a number as possible (by increments of .5)
    - in example, the secondary axis is 7 and the primary is 600. The ratio of those is ~85, and the benchmark on the previous tab is 88. Ideally each graph generated would have to be edited to come close to that ratio


    Thank you!
    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: Automating Graphs in Excel

    lets start with the easy things

    - Change Title of chart to Selection on Filter
    ^to do this just change the title to filter
    in your example
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    - Create a pivot chart per filter item
    assume your pivot table is already setup and this is not part of the macro
    So, what do you want to happen with each graph...you didn't stipulate this part?
    create pdfs for each graph? copy picture for each graph somewhere?
    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.

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

    Re: Automating Graphs in Excel

    i have something very similar setup already so this is basically what i do

    i have a list of every item you want to filter
    i put this in your data sheet L2:l5
    as mentioned in spreadsheet
    its a list of unique values based on your pivot data which you can either set with formula or just do it manually (copy the column and remove duplicates)


    Please Login or Register  to view this content.
    this code changes thru all the states and creates a pdf into folder "email"
    PSyou need to put a subfolder under this file called email or the code doesnt work
    Attached Files Attached Files

+ 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. Automating IE9 via Excel
    By madbloke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-10-2014, 07:53 AM
  2. Question re: automating graphs to shrink in size
    By SolarFirst in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2013, 05:51 AM
  3. Replies: 2
    Last Post: 07-14-2013, 03:13 PM
  4. Trouble automating creation of charts/graphs
    By vbanewb14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2010, 05:01 PM
  5. [SOLVED] Are there better GRAPHS within EXCEL or Add-on graphs?
    By Deb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-01-2006, 09:25 AM
  6. [SOLVED] automating jmp thru excel
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2005, 03:05 PM
  7. [SOLVED] Automating Excel
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2005, 03:06 PM

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