+ Reply to Thread
Results 1 to 2 of 2

Create Custom Chart with 2 Axes Values in VBA

  1. #1
    wira
    Guest

    Create Custom Chart with 2 Axes Values in VBA

    Hi there,

    IF anyone here could show me how to create custom chart in VBA. I want to
    create a combination of bar and line chart. What i know is to create a chart,
    u need to

    Dim chrt as Chart

    Set chrt = ChartObjects.Add
    chrt.ApplyCustomType(ChartType, TypeName)

    I have a problem with the arguments there. Solution, anyone?

    thanks,
    wira

  2. #2
    Tushar Mehta
    Guest

    Re: Create Custom Chart with 2 Axes Values in VBA

    Does XL give you the necessary code if you use the macro recorder?
    Turn it on (Tools | Macro > Record new macro...), do whatever it is you
    want by hand, turn off the recorder, switch to the VBE, and check the
    code XL generated.

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Excel, PowerPoint, and VBA add-ins, tutorials
    Custom MS Office productivity solutions

    In article <[email protected]>,
    [email protected] says...
    > Hi there,
    >
    > IF anyone here could show me how to create custom chart in VBA. I want to
    > create a combination of bar and line chart. What i know is to create a chart,
    > u need to
    >
    > Dim chrt as Chart
    >
    > Set chrt = ChartObjects.Add
    > chrt.ApplyCustomType(ChartType, TypeName)
    >
    > I have a problem with the arguments there. Solution, anyone?
    >
    > thanks,
    > wira
    >


+ 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