Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Indianapolis, Indiana, USA
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Format variable series on X axis & Chart Styles. W7 - 64b, Of 2010 - 64b

    I am generating frequency data with two series of bins (month & lenrange) in Access. I have to create over a 1,000 charts and I have two questions (for now anyway). The first is on the application of styles with vba and the other is on axes formatting. Below is some sample data and I've attached a spreadsheet of the data.

    1) Once I get a suitable chart format, I should be able to save the format as a custom style, and call the style in vba to apply to a range I generate in vba? Or will I have to format every chart I create in vba?

    I've been trying to format the primary x axis (month) so that the month is represented only one time. That is, 3 3 would be just 3, 5 5 would be just 5, 6 6 6 6 6 would be just 6, and so on. Each month has to appear on the chart. Due the variability in the number of occurrences in a month I have not been able to use the axis formatting to get one month at the same time as making sure all months appear on the chart. The secondary x axis is the lenrange

    Anyone have any suggestions?

    Attached Images Attached Images
    Attached Files Attached Files

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,212
    Thanks
    14
    Thanked 338 Times in 331 Posts
    How about something like the attached?

    I used the lenrange and count as is but used a calc to put the month number in the first entry (and nulls in the rest) and formatted it as the 3-letter month name. Then using the unique month name list and lenrange Cols as the "combined x-Axis" against the count as the Y-axis in a column chart it seems to work with little trouble or setup. The months work best centered on the bottom so the lenrange is rotated...

    Steve
    Attached Files Attached Files

  4. The Following User Says Thank You to sdckapr For This Useful Post:

    wejones (2011-11-11)

  5. #3
    Star Lounger
    Join Date
    Sep 2002
    Location
    Indianapolis, Indiana, USA
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Steve:

    Thanks. Just found a similar solution and was logging in to post it after testing. I see there is no need to post now since yours is the same concept. I really like the formula for the month conversion and setup, makes it much easier and solves my next question.
    Last edited by wejones; 2011-11-11 at 16:34. Reason: took second look at sheet and saw more

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •