Problema con tabla dinámica en macro
Estimados tengo el siguiente problema con el siguiente código
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Sheets.Add.Name = "Informacion Total de cheque"
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"Base de Cientes Cheques!B3:P" & te & "", Version:=xlPivotTableVersion15).CreatePivotTable _
TableDestination:="Informacion Total de cheque!A3", TableName:="Tabla dinámica1", _
DefaultVersion:=xlPivotTableVersion15
Al ejecutar la macro me manda el error '5' me pueden ayudar por favor..