What’s an efficient way, in VBA, to determine the smallest range of cells (single selection rectangle) on a worksheet that encompasses all the non-blank cells. In my case all the cells contain text, but it might be helpful if this could also apply if the the cells might contain formulas or numbers.
Thanks.