View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] benmcclave@gmail.com is offline
external usenet poster
 
Posts: 29
Default Macro to update pivot table data range

Taffy,

I think the issue is in the "SourceData" argument. If you change it to:

SourceData:="Sales!" & Worksheets("Sales").Range("A5").CurrentRegion.Addr ess

it should work.

Hope this helps,
Ben