+ Reply to Thread
Results 1 to 4 of 4

Kindly assist with pivot chart macro

  1. #1
    Registered User
    Join Date
    01-30-2012
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2007
    Posts
    4

    Kindly assist with pivot chart macro

    Hello All,

    I created a pivot table (using macro) from the data on sheet titled RawData however, there are some modifications i will like made on the pivot table:
    Please find attached the sample data for further clarifications.
    1) The sheet titled rawdata contains the data from which pivot chart is created.
    2) The sheet titled "Pivot Chart gotten from macro" is the pivot chart gotten after the macro runs.
    3) the sheet titled "expected outcome" is the pivot chart done without using a macro, this is the outline which we want to get when we run the macro for the pivot chart.

    I need assistance with modifying the macro foso that i can get the pivot chart displayed in the format represented in the sheet "expected outcome" and also ensuring user input is requested for the pivot table's sheet i.e the sheet is named after whatever user input is fed before the pivot table is created.

    The macro is attached in text format and the excel document is in the zipped folder.
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Kindly assist with pivot chart macro

    Please Login or Register  to view this content.
    Last edited by Bob Phillips; 02-02-2012 at 06:46 AM.

  3. #3
    Registered User
    Join Date
    01-30-2012
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Kindly assist with pivot chart macro

    Hello Bob,

    Thanks for your response.

    However, the macro above only created a new worksheet, no pivot table was created

    It gave error " run time error 5, invalid procedure call or argument"

    Kindly assist.

    Thank you.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Kindly assist with pivot chart macro

    ARe you on Excel 2007? If so try changing TableVersion14 to TableVersion12.

+ 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