Closed Thread
Results 1 to 3 of 3

Extending Data Range of a Pivot Table

  1. #1
    Registered User
    Join Date
    11-08-2006
    Posts
    41

    Extending Data Range of a Pivot Table

    Hi everybody

    I am working with macros which Refresh the Pivot Table, automatically. Everything is working fine except one real problem, as below:

    When the newer rows are added to the worksheet, Refreshing the Pivot Table does not include those added rows in the Pivot Table, automatically, unless I do it manually. Extending the Range manually kills the whole purpose of the macros.

    Would a wizard help me getting around this problem!

    Also, how to find the Pivot Table name to reference it. At the moment, I am using FOR loop to hit any Pivot Table available on the sheet.

    Any expert help will be highly appreciated.

    Regards,

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    For your first issue, if the worksheet contains only the data table for your pivot table, I would recommend you using a dynamic named range for the data. This way, you can simply refer to this range in your code, and it will update automatically. If you are unfamiliar with dynamic named ranges, have a look here:

    http://www.contextures.com/xlNames01.html

    For the second issue, the following will give you the name of each pivot table on the active sheet:
    Please Login or Register  to view this content.
    HTH

    Jason

  3. #3
    Registered User
    Join Date
    11-08-2006
    Posts
    41
    Thanks Jason, for the tip.

    Regards

Closed 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