Thread: Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nbiggss Nbiggss is offline
external usenet poster
 
Posts: 2
Default Macro

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"'" & Activehseet.Name & "'!R21C2:R65536C8").CreatePivotTable
TableDestination:="", _TableName:="PivotTable2"

Error: Argument not optional.

I think this comes from the last section of the above TableDestination:=""

Help