+ Reply to Thread
Results 1 to 5 of 5

Pivot Chart - default chart type

Hybrid View

Guest Pivot Chart - default chart... 09-04-2005, 12:05 AM
Guest Re: Pivot Chart - default... 09-04-2005, 12:05 AM
Guest RE: Pivot Chart - default... 09-04-2005, 05:05 AM
Guest Re: Pivot Chart - default... 09-04-2005, 09:05 AM
Guest Re: Pivot Chart - default... 09-05-2005, 09:05 PM
  1. #1
    Rav99
    Guest

    Pivot Chart - default chart type

    I created a Pivot chart from Pivot table, however, as the user changes the
    options (from pivot fields), then the chart type changes back to default one
    (I want the line-column 2 axes one). I figured I could go to VBA properties
    to default the chart type by choosing the chart code, however under that
    list, there is no chart code for that combination chart (line chart + column
    chart with 2 axes). How can I do this?

    Can someone help... as I am not good at VBA? Thanks!

  2. #2
    Debra Dalgleish
    Guest

    Re: Pivot Chart - default chart type

    If you turn on the macro recorder as you apply the custom chart type,
    you'll get code similar to the following:

    ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, _
    TypeName:="Line - Column on 2 Axes"


    Rav99 wrote:
    > I created a Pivot chart from Pivot table, however, as the user changes the
    > options (from pivot fields), then the chart type changes back to default one
    > (I want the line-column 2 axes one). I figured I could go to VBA properties
    > to default the chart type by choosing the chart code, however under that
    > list, there is no chart code for that combination chart (line chart + column
    > chart with 2 axes). How can I do this?
    >
    > Can someone help... as I am not good at VBA? Thanks!



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    Rav99
    Guest

    RE: Pivot Chart - default chart type

    OK... I tried.. but it doesn't work... What I did ... I open VBE and click on
    the Chart, on my right, I have Chart_Activate(), so I put the script you
    provided underneath it and saved... but it doesn't work.

    Did I do something wrong?

    "Rav99" wrote:

    > I created a Pivot chart from Pivot table, however, as the user changes the
    > options (from pivot fields), then the chart type changes back to default one
    > (I want the line-column 2 axes one). I figured I could go to VBA properties
    > to default the chart type by choosing the chart code, however under that
    > list, there is no chart code for that combination chart (line chart + column
    > chart with 2 axes). How can I do this?
    >
    > Can someone help... as I am not good at VBA? Thanks!


  4. #4
    Debra Dalgleish
    Guest

    Re: Pivot Chart - default chart type

    If you put the code in the Chart_Calculate event, it should work.

    Rav99 wrote:
    > OK... I tried.. but it doesn't work... What I did ... I open VBE and click on
    > the Chart, on my right, I have Chart_Activate(), so I put the script you
    > provided underneath it and saved... but it doesn't work.
    >
    > Did I do something wrong?
    >
    > "Rav99" wrote:
    >
    >
    >>I created a Pivot chart from Pivot table, however, as the user changes the
    >>options (from pivot fields), then the chart type changes back to default one
    >>(I want the line-column 2 axes one). I figured I could go to VBA properties
    >>to default the chart type by choosing the chart code, however under that
    >>list, there is no chart code for that combination chart (line chart + column
    >>chart with 2 axes). How can I do this?
    >>
    >>Can someone help... as I am not good at VBA? Thanks!

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  5. #5
    Rav99
    Guest

    Re: Pivot Chart - default chart type

    yeh! Wow wow... it works...But now I have another problem of fixing the value
    of my 2nd Y axis from 0 to 100%, but everytime I change the choice, it
    changes accordingly based on the logarithmic method. Please ... after this...
    I am really done with my project. Any thought?

    Woowww woooow ... You really make my day!



    "Debra Dalgleish" wrote:

    > If you put the code in the Chart_Calculate event, it should work.
    >
    > Rav99 wrote:
    > > OK... I tried.. but it doesn't work... What I did ... I open VBE and click on
    > > the Chart, on my right, I have Chart_Activate(), so I put the script you
    > > provided underneath it and saved... but it doesn't work.
    > >
    > > Did I do something wrong?
    > >
    > > "Rav99" wrote:
    > >
    > >
    > >>I created a Pivot chart from Pivot table, however, as the user changes the
    > >>options (from pivot fields), then the chart type changes back to default one
    > >>(I want the line-column 2 axes one). I figured I could go to VBA properties
    > >>to default the chart type by choosing the chart code, however under that
    > >>list, there is no chart code for that combination chart (line chart + column
    > >>chart with 2 axes). How can I do this?
    > >>
    > >>Can someone help... as I am not good at VBA? Thanks!

    > >

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


+ 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