+ Reply to Thread
Results 1 to 2 of 2

Creating pivot tables via macro - is there a simple way?

  1. #1
    Registered User
    Join Date
    12-29-2010
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    35

    Question Creating pivot tables via macro - is there a simple way?

    Hi, I need your help again. I have a file where we need to create multiple pivot tables and I am trying to automate it by recording a macro. It works when I record, but when I run it I either get all pivot tables showing with the same settings as as the last pivot I recorded or I get invalid procedure, call or argument. I tried to debut but don't really understand what I'm seeing.

    Is there a straight forward way to do pivot tables in a macro where I can tell it what sheet/range to pivot and what should be in the rows, columns, filters, and values boxes for the table?

    I'm still new and fumbling, so please break it down for me in as layman-ish terms as possible so I can learn. Many thanks.

    So here are two pivots I've managed to record out of about 10. Maybe something in the code will pop out at you.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Creating pivot tables via macro - is there a simple way?

    You might start here...https://excelchamps.com/blog/vba-to-create-pivot-table/

+ 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. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-12-2013, 02:28 AM
  2. Creating a Master / Consolidated Pivot Tables from a multiple pivot tables
    By paradise2sr in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-08-2013, 10:49 PM
  3. Creating pivot tables with macro VBA
    By marielouise1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 01:22 PM
  4. Macro for creating two pivot tables
    By aarodn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2013, 02:56 PM
  5. Creating Pivot Tables with a simple push-button?
    By dnewell123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2012, 09:48 AM
  6. Creating Pivot Tables with macro Problem
    By Linda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2005, 06:17 PM
  7. [SOLVED] Creating Pivot Tables inside a Macro
    By farrell77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2005, 06:06 PM

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