+ Reply to Thread
Results 1 to 11 of 11

VBA code to auto refresh Pivot table

Hybrid View

  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA code to auto refresh Pivot table

    Do you mean you need to expand the no of rows the pivot table is using as it's source?

    If you do i would suggest you convert the data on 'Trans sheet' to table format and then redoing the pivot table.

    Then you should be able to use something like this.
    Sheets("Masterfile").PivotTables(1).PivotCache.Refresh ' change Masterfile if that's not the actual name with the pivto table on it.
    If posting code please use code tags, see here.

  2. #2
    Forum Contributor
    Join Date
    12-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: VBA code to auto refresh Pivot table

    I want that macro be triggered (Refresh pivot) when Masterfile sheet is selected.

+ 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. import data from access table to excel pivot table - Enable Auto Refresh
    By okl in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-01-2010, 09:38 AM
  2. [SOLVED] Auto-refresh pivot table?
    By kk_oop@yahoo.com in forum Excel General
    Replies: 1
    Last Post: 04-18-2006, 05:35 PM
  3. Replies: 6
    Last Post: 12-21-2005, 07:20 PM
  4. [SOLVED] auto refresh of pivot table
    By Luc Poppe in forum Excel General
    Replies: 9
    Last Post: 09-10-2005, 01:05 PM
  5. Pivot Table - Auto Refresh
    By mdalby in forum Excel General
    Replies: 1
    Last Post: 04-11-2005, 08:14 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