+ Reply to Thread
Results 1 to 5 of 5

Refreshing pivot table data when moving between sheets

  1. #1
    Registered User
    Join Date
    05-23-2010
    Location
    kuwait
    MS-Off Ver
    Excel 2007
    Posts
    19

    Exclamation Refreshing pivot table data when moving between sheets

    Hi Every Body,
    I need code to refresh pivot table data when i move between sheets
    thanks
    Sayed

  2. #2
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Refreshing pivot table data when moving between sheets

    This would go through all sheets and if there is a pivot table on the sheet it would be refreshed.

    Please Login or Register  to view this content.
    Last edited by Avinash Beepath; 12-15-2010 at 04:33 PM. Reason: Explanation

  3. #3
    Registered User
    Join Date
    05-23-2010
    Location
    kuwait
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Refreshing pivot table data when moving between sheets

    Dear Mr Avinash,
    Many Thanks for your reply . but i tried this code and Data not Updated
    thanks sayed

  4. #4
    Registered User
    Join Date
    05-25-2010
    Location
    Trinidad
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Refreshing pivot table data when moving between sheets

    Are you updating your datasource range before running this code?

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Refreshing pivot table data when moving between sheets

    If you want the code to run automatically as you move between sheets you can use either a workbook level Workbook_SheetActivate event or just for specific sheet(s) a worksheet level Worksheet_Activate event to kick the code off.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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