Consulting

Results 1 to 2 of 2

Thread: Auto Scale Chart Font in Excel 2007

  1. #1
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location

    Auto Scale Chart Font in Excel 2007

    Can't find the option, and my belief is that Microsoft have chosen to remove it.


    Quick workaround if required (although I'm sure there are other ways to accomplish this):

    [VBA]
    Dim cht As ChartObject


    For Each cht In shGraphs.ChartObjects
    cht.Chart.Legend.Font.Size = 14
    cht.Chart.Legend.Position = xlLegendPositionRight
    Next cht

    [/VBA]

    I've attached this to a worksheet event that causes a recalculation.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I believe that you are correct. It even seems that although the property has been retained in the OM and you can set it in VBA, it has no effect (sic!).
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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