+ Reply to Thread
Results 1 to 3 of 3

Macro for creating two pivot tables

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Swindon England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro for creating two pivot tables

    Hi,

    I find that using the record Macro function is really useful. Start the recording, do what you need to do manually, stop the recording and then use the code that was stored in the marcro as a 'starter for 10' usually works for me with a bit of tweaking.

    ta

    PKDJ

  2. #2
    Registered User
    Join Date
    04-19-2013
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Macro for creating two pivot tables

    Unfortunately, the macro recorder does not use loops or variables...as far as i know. I have accomplished the task of using the same pivot cache to produce two pivot tables, although not simultaneously. Currently, my macro creates a pivot table, copys/pastes to a new sheet, then clears the pivot table fields and creates a new pivot table without reselecting the data, and finally copys/pastes to the recently created sheet.

    I want the macro to use loops and variables because soon i will want it to create three or more tables.

+ 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