Excel has a CurrentRegion Method that is invoked as
The idea behind this is to choose a region that have contiguous blank cells on all 4 sides ( except the case of cells in 1st column and cells in 1st row, in which case it will be 3 sides ) that separates from other regions
I have written a Python code that accomplishes this task. I have extended the CellRange class and added the method and it is working as expected.
Please let me know if this will be a useful feature and I will the submit code for review and standardization.
It may not be the best code, but has performed well and correctly in all my testing so far
Please see example snap shots attached for how CurrentRegion is expected to work
(reference link https://www.excel-easy.com/vba/examples/currentregion.html
Here is additional reference to the Method as implemented in Excel VBA