Dear Vijay,
The following code will refresh all pivot tables in an excel workbook or a worksheet. There are two ways to achieve this: *Refresh all pivots in Workbook – Method 1* Sub try1() For Each pt In ActiveWorkbook.PivotCaches pt.Refresh Next pt End Sub *Refresh all pivots in Workbook – Method 1* Sub try2() For Each sht In ActiveWorkbook.Worksheets For Each pt In ActiveSheet.PivotTables pt.RefreshTable Next pt Next sht End Sub On Sat, Feb 11, 2012 at 11:11 AM, vijayajith VA <vijayajith...@gmail.com>wrote: > Hi > > > Question asked in interview.... > > i have nearly 30 pivot table....in 30 sheets ............i need to enter > data in master sheet....at a time i need to refresh alll the pivot table... > > how to link the pivot table... Please help me.....i dont have any > workbook.. question asked in interv........thanks in advance > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- Thanks & regards, Noorain Ansari *http://noorainansari.com/* <http://excelmacroworld.blogspot.com/> *http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/> -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com