Good afternoon, I apologise for the clumsy title. Basically, over the years I've found that the only way to reduce the number of used Columns (or Rows) after having 'Deleted' them is to save the workbook. If I don't and then just key Ctrl+End I end up at the bottom of the previously used range - somewhere among the 'unused' Columns (or Rows).
Accordingly I have incorporated this into some code as I'm particularly keen on shrinking the size of a workbook having bothered to try to tidy it up:
But I just wonder if there is any other way to ensure that the last cell is actually in the last used Column & Row?
Many thanks,
D€$
Accordingly I have incorporated this into some code as I'm particularly keen on shrinking the size of a workbook having bothered to try to tidy it up:
Code:
'' 'delete columns from column K rightward
.Range(.Columns(11), .Columns(LastCol)).Delete
ActiveWorkbook.Save
But I just wonder if there is any other way to ensure that the last cell is actually in the last used Column & Row?
Many thanks,
D€$