Hello!
Please can you help to improve the VBA code. It's necessary to create pivot table in Excel from MS Access using VBA.
The VBA code stops running on this line:
Access file is attached.HTML Code:Set PTCache = .ActiveWorkbook.PivotCaches.Add _ (SourceType:=xlDatabase, _ SourceData:=.ActiveWorkbook.Sheets("Raw_Data").Range(SourcePivot))
Thanks in advance.