+ Reply to Thread
Results 1 to 3 of 3

Does Excel 2011 support .ApplyChartTemplate?

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    SF, CA
    MS-Off Ver
    Excel 2011
    Posts
    1

    Does Excel 2011 support .ApplyChartTemplate?

    Hi - I've been using a macro with OSX Excel 2004 for years. I just bought 2011.

    In the 2004 version I apply a user-defined custom chart. Since user-defined charts seem to have disappeared from post-2004 Excel versions, in 2011 I've tried to apply a Chart Template via VBA.

    But this just won't work. I record a macro which applies a Chart Template, like this:

    ActiveChart.ApplyChartTemplate ( _
    "/Users/jsmith/Library/Application Support/Microsoft/Office/Chart Templates/Investment_Chart.crtx" _
    )

    But when I play it back, I get the error message: "The specified dimension is not valid for the current chart type". It works ok if I apply the template manually, but VBA chokes on it.

    Is the ApplyChartTemplate working in Excel 2011? Or what VBA command would let me get this done? Thanks....

    PS. Anyone know how VBA in 2011 compares to recent Windows versions?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Does Excel 2011 support .ApplyChartTemplate?

    Quote Originally Posted by macster2011 View Post
    PS. Anyone know how VBA in 2011 compares to recent Windows versions?
    It's basically VBA6 with some object model differences and much, much worse performance.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2011
    Posts
    6

    Re: Does Excel 2011 support .ApplyChartTemplate?

    Hi

    You have the syntax almost right. You need to include the Hard Drive name at the beginning of the file path. Also, the file path separator is the colon (not slash), like this:

    Please Login or Register  to view this content.

+ 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