Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Set wD = Sheets.Add
  2. ThisWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:=wS.UsedRange).CreatePivotTable _
  3. TableDestination:=wD.Range("A3")
  4.  
  5. Set wD = Sheets.Add
  6. ThisWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:=wS.CurrentRegion).CreatePivotTable _
  7. TableDestination:=wD.Name & "!R3C1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement