Hi,

Paste the following macro in Sheet1 module :

 

Private Sub Worksheet_Change(ByVal Target As Range)

'A1:F10 is data for pivot table 1 G1:I10 is data for pivot table 2...

If Not Intersect(Target, Union([A1:F10], [G1:I10])) Is Nothing Then

    ThisWorkbook.RefreshAll

End If

End Sub

 

Regards.

Daniel

 

De : excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] De
la part de Chandra Shekar
Envoyé : mercredi 27 avril 2011 11:31
À : excel-macros@googlegroups.com
Objet : $$Excel-Macros$$ Refreshing Pivot Table using VBA Code

 

Hi,

 

In sheet1 I have 5 pivot table and source in sheet2. Here I need macro which
refresh pivot table when I paste new data.

 

Thanks in Advance.

 

Regards,

 

Chandra Shekar B

9845976015

-- 
----------------------------------------------------------------------------
------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links :
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
 
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to