+ Reply to Thread
Results 1 to 2 of 2

Equalize Character Height > Error: Method 'TextFrame2' of object 'ChartFormat' failed

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    US
    MS-Off Ver
    2010
    Posts
    1

    Equalize Character Height > Error: Method 'TextFrame2' of object 'ChartFormat' failed

    Hi, I am a fairly advanced vba user but self taught. I am having trouble trying to equalize the height of font on my x and y axis in a chart using Excel 2010. I am using Lucida console as the font and manually I can change the font by selecting the axis and either right clicking or going to the home > font options and selecting the Equalize Character Height check box. I have only found a few threads and a google book on fonts2 and the equalize property. I understand the format property on the axis is read only and some people have been able to use a work around but I have not been successful trying pretty much every option. I know this was reported as a bug in 2010 but I cannot seem to find any resolution, link.

    Only documentation I can find: msdn link

    Without trying to define the solution my basic requirement is to be able to display 124 date records legibly in the x axis. The best font I have found is lucida console size 8 with the equalize character height check box. If someone can suggest another font format I can set through VBA that is legible on screen and when printed that would be great also.

    I have tried many variations of the below code including setting as an object and selecting the axis first but with little success. With that said what I am basically trying to do is this... or find a more legible font for 124 dates

    Please Login or Register  to view this content.


    Thanks,
    Kick

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

    Re: Equalize Character Height > Error: Method 'TextFrame2' of object 'ChartFormat' failed

    As the OM is not working for that property you best work around maybe to use a chart template that sets the font property and then use VBA code to change all the other stuff
    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)

Similar Threads

  1. Error: Method 'Value' of Object 'Range' Failed
    By jsotor4 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2014, 08:58 AM
  2. Addon error : Run-time error '1004': Method 'MacroOptions' of object '_Application' failed
    By jtcoleman in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-05-2014, 12:23 PM
  3. Open method of object failed error
    By maw230 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 09:19 AM
  4. Object error - method failed
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2009, 02:02 AM
  5. error 1004, method of class/object failed
    By daboyroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2006, 12:01 AM

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