+ Reply to Thread
Results 1 to 2 of 2

Change Axis Title layout in chart using VBA

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Change Axis Title layout in chart using VBA

    I'm trying to change the Axis Title layout alignment to -35 degrees using VBA

    I tried this without success:
    Please Login or Register  to view this content.
    ActiveChart.Axes(xlCategory).AxisTitle.HorizontalAlignment = -35
    Please Login or Register  to view this content.


    Your help is greatly appreciated.

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

    Re: Change Axis Title layout in chart using VBA

    HorizontalAlignment takes these fixed enumerated values.

    xlCenter
    xlDistributed
    xlJustify
    xlLeft
    xlRight

    try using
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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