+ Reply to Thread
Results 1 to 3 of 3

VBA code to make x-axis labels of an Excel chart be vertical

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    11

    VBA code to make x-axis labels of an Excel chart be vertical

    Hi,

    I posted this question earlier in the Charts forum (http://www.excelforum.com/excel-char...-vertical.html) but didn't get a response, so was thinking this forum may be more appropriate.

    I have a chart with input data that changes. That results in the x-axis labels sometimes being vertical, slanted, or horizontal.

    Is there a way to have a piece of vba code that detects the slant direction of the data labels and automatically adjusts the chart width to achieve vertical data labels?

    Thanks!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: VBA code to make x-axis labels of an Excel chart be vertical

    One of these two perhaps.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-13-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: VBA code to make x-axis labels of an Excel chart be vertical

    Superb!!! That worked very well. Thanks Andy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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