I have some data in an Excel Worksheet. I would like to select all the cells which contain data.
For example, for a worksheet with data in cells A1, A2, A3, B1, B2, B3, C1, C2, and C3, how can I select just this 3×3 grid, and not the entire sheet?
I am looking for something like ActiveSheet.SelectUsedCells.
Here you go:
Or if you don’t necessarily start at A1: