+ Reply to Thread
Results 1 to 2 of 2

Automatic refresh of pivot table on changes in external data source.

Hybrid View

namrata773 Automatic refresh of pivot... 12-04-2013, 02:27 AM
NeedForExcel Re: Automatic refresh of... 12-04-2013, 04:43 AM
  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    mumbai,india
    MS-Off Ver
    Excel 2010
    Posts
    1

    Automatic refresh of pivot table on changes in external data source.

    Hi,
    I have a pivot table report connected to an external data source (OLAP cube).I want to automatically refresh the pivot table report everytime the OLAP cube data changes.

    I know we can use Automatic refresh on open of workbook or time intervals after which to refresh .But i want the auto refresh to work even if the workbook is already open and there is no definite time interval after which the cube is likely to change.SO,by defining intervals for auto refresh i do not intend to waste time refreshing even if there is no change.

    There are multiple pivot table reports and pivot charts connected to the same OLAP cube.

    Is it possible through some macros and if so can anyone share the same.I have no knowledge of writing macros for Excel.

    Thanks.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Automatic refresh of pivot table on changes in external data source.

    Can you attach your sample workbook? I will help you with the code.

    You can use something like
    Sub RefreshPT()
    
    Dim PT As PivotTable
    Dim WS As Worksheet
    
        For Each WS In ThisWorkbook.Worksheets
    
            For Each PT In WS.PivotTables
              PT.RefreshTable
            Next PT
    
        Next WS
    
    End Sub
    Deep
    Last edited by NeedForExcel; 12-04-2013 at 04:49 AM.
    Cheers!
    Deep Dave

+ 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. Replies: 0
    Last Post: 08-14-2013, 06:31 AM
  2. Macro to refresh pivot table and update data source
    By TBO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2013, 01:09 PM
  3. [SOLVED] Auto Refresh Pivot Table Once External Data source Changes
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 10:33 AM
  4. Replies: 0
    Last Post: 05-25-2010, 05:47 PM
  5. Replies: 0
    Last Post: 07-08-2006, 07:45 AM

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