Results 1 to 5 of 5

Changing the font of an axis in a pivot chart

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    105

    Changing the font of an axis in a pivot chart

    Hi. I recorded a macro to change the font size of my pivot chart, but when I run the macro, it crashes with the error message of object not set. Below are the few lines of code that recorded. What might be wrong? Thanks.

        ActiveChart.ChartArea.Select
        ActiveChart.Axes(xlCategory).Select
        With Selection.Format.TextFrame2.TextRange.Font
            .BaselineOffset = 0
            .Size = 9
        End With
    Frank
    Last edited by Paul; 06-25-2012 at 08:47 PM. Reason: Added CODE tags. Please do so yourself in the future.

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