I want to create a named range the bottom right corner of which is the bottom right cell of the pivot table. CAn anyone help with how to find the last cell. The following only works if I first reset the last cell in the workbook and second if there is nothing else in the workbook.
Thanks,
Gavin
Code:
With ThisWorkbook.ActiveSheet
.Range(.Range("TopLeft"), .Range("TopLeft").SpecialCells(xlCellTypeLastCell)).Name = "rBudgetChanges"
End With
Thanks,
Gavin