+ Reply to Thread
Results 1 to 2 of 2

Font Size in Chart Title

  1. #1
    Bill
    Guest

    Font Size in Chart Title

    Hello,
    I have an embedded chart on a worksheet. I want to know the font size in
    the title so I can adjust it. I tried the following:

    ActiveSheet.ChartObjects("newchart").Activate
    textsize = ActiveChart.ChartTitle.Characters.Font.Size

    But I get a null value for textsize. How can I do this?

    Thanks,

    Bill



  2. #2
    Andy Pope
    Guest

    Re: Font Size in Chart Title

    Hi,

    The syntax is correct. The Null would suggest that the charttitle
    contains multiple font attributes. Have you formatted part of the title
    in a different size?

    If so you will need to check each character in the title, like this.

    ActiveChart.ChartTitle.Characters(4,1).Font.Size

    Cheers
    Andy

    Bill wrote:
    > Hello,
    > I have an embedded chart on a worksheet. I want to know the font size in
    > the title so I can adjust it. I tried the following:
    >
    > ActiveSheet.ChartObjects("newchart").Activate
    > textsize = ActiveChart.ChartTitle.Characters.Font.Size
    >
    > But I get a null value for textsize. How can I do this?
    >
    > Thanks,
    >
    > Bill
    >
    >


    --

    Andy Pope, Microsoft MVP - Excel
    http://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)

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