+ Reply to Thread
Results 1 to 2 of 2

Creating a pivot table using Macro

Hybrid View

McQLon Creating a pivot table using... 09-24-2008, 07:48 AM
Cheeky Charlie Use a dynamic named range for... 09-24-2008, 07:54 AM
  1. #1
    Registered User
    Join Date
    09-08-2008
    Location
    London
    Posts
    40

    Creating a pivot table using Macro

    Hi,

    I have a table of raw data that changes on a weekly basis and I want to be able to put this raw data into a pivot table as and when needed using a macro in order to speed things up. The number of columns remains the same but the number of rows changes continuously. (example attached).

    Each time I record a macro and go through the steps one by one the macro stops and needs debugging at the stage of creating the pivot.

    Can anyone help?


    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Use a dynamic named range for your pivot table - then you don't need to recreate every time, you can just append new data.

    No coding necessary.

    http://www.ozgrid.com/Excel/DynamicRanges.htm


    HTH

+ 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. how can i create a macro for creating a pivot table.
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-18-2008, 08:27 AM
  2. Creat Pivot Table with a Macro
    By ranaamir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2008, 04:07 AM
  3. Change data source of pivot table using macro
    By ashishprem in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2008, 01:11 AM
  4. Create a pivot table in a macro
    By Excelliarmus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2008, 12:17 PM
  5. Pivot table macro
    By svn_pie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2007, 04:39 PM

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