+ Reply to Thread
Results 1 to 2 of 2

User defined chart

  1. #1
    Freddie Mac
    Guest

    User defined chart

    i am writing a macro that creates charts. I want to use a user defined chart
    type (that I have) but I dont know how to write the code for this. My code is:

    Charts.Add
    With ActiveChart
    ..ApplyCustomType(xluserDefined, Standard)
    ..............
    End with

    As you may see the third line is wrong. How should you write this? Please
    help me!

  2. #2
    crazybass2
    Guest

    RE: User defined chart

    Freddie,

    Try this:

    Set ch = Charts.Add
    ch.ApplyCustomType ChartType:=xlUserDefined, TypeName:="Mikes"

    And replace Mikes with the name of your custom chart.

    Mike

    "Freddie Mac" wrote:

    > i am writing a macro that creates charts. I want to use a user defined chart
    > type (that I have) but I dont know how to write the code for this. My code is:
    >
    > Charts.Add
    > With ActiveChart
    > .ApplyCustomType(xluserDefined, Standard)
    > .............
    > End with
    >
    > As you may see the third line is wrong. How should you write this? Please
    > help me!


+ 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