try replacing all this:
Sheets("Ruteo").Select
ActiveCell.SpecialCells(xlCellTypeLastCell).Offset(0, 0).Select
Rango = Selection.Cells.Row
Range("A1:C" & CStr(Rango)).Select
Set rng = Nothing
On Error Resume Next
Set rng = Selection
On Error GoTo 0
Range("A1").Select
Sheets("Info Cedi").Select
ActiveCell.SpecialCells(xlCellTypeLastCell).Offset(0, 0).Select
Rango2 = Selection.Cells.Row
Range("A1:C" & CStr(Rango2)).Select
Set rng2 = Nothing
On Error Resume Next
Set rng2 = Selection
On Error GoTo 0
Range("A1").Select
with this:
Set rng = Sheets("Ruteo").Cells(1).PivotTable.TableRange1
Set rng2 = Sheets("Info Cedi").Cells(1).PivotTable.TableRange1