+ Reply to Thread
Results 1 to 5 of 5

VBA for Pivot Chart

  1. #1
    Registered User
    Join Date
    11-30-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    5

    VBA for Pivot Chart

    Hi Everyone,

    I have another problem with VBA and I want to say that I don't have wide experience in it.

    Do you know how to check, for each series in the chart name of the X axis and Y axis ?

    I can't find anything in the internet.

    Thank you for help.

    Blacky

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA for Pivot Chart

    what exactly are you checking?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-30-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA for Pivot Chart

    Sorry I wasn't precise. As you can see on the pic below I have pivot chart with a pivot table. Below it is pic of pivot chart columns rows and Values.Pivot Chart_2.png

    I know how to extract from the chart series name, which is FName + Values, e. g. Name1 Useful, Name1 Latest, Name2 Useful, ....

    Do you know how can I extract in macro VBA only Name1, Name2,... which are values for FName in my example, so for columns.

    I think that I need just only column value for specific series or something. Do you know the syntax for this in the VBA?

    Thank you for interest.

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,067

    Re: VBA for Pivot Chart

    Hi Blacky529,

    I've read the post & want to help but the request is not clear.

    Are you trying to add a Calculated Field into your Pivot?

    Can you post either some data OR some dummy data that replicates your issue?

    Thanks
    Remember you are unique, like everyone else

  5. #5
    Registered User
    Join Date
    11-30-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA for Pivot Chart

    Sorry I haven't see your replay.

    I already solved my problem by using function InStr(1, MySeries.Name, "-") and than Left(MySeries.Name, InStr(1, MySeries.Name, "-") - 1).
    with first function I am searching for position of character "-" - which is always appearing in MySeries.Name, then I am taking text from MySeries.Name up to position of character "-" minus 1.

    It is not ideal but works

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. pivot chart changed to normal chart after populate it in userform
    By farrag in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2017, 09:12 AM
  2. Replies: 3
    Last Post: 03-24-2016, 01:49 PM
  3. Chart order in trad. Pivot Chart vs. PowerPivot chart
    By mr_jules in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-06-2015, 11:17 AM
  4. Changing a pivot chart column color based on the pivot table category
    By Shawne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2014, 09:12 AM
  5. How to add target line to stacked column pivot chart chart
    By oleg mirzaev in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-04-2013, 07:46 AM
  6. Replies: 2
    Last Post: 05-24-2013, 03:58 PM
  7. Replies: 3
    Last Post: 09-11-2010, 06:55 AM

Tags for this Thread

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