This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Current Region as a Method either in openpyxl.worksheet.cell.Cell or .cell_range.CellRange
Type: enhancement Stage: resolved
Components: Demos and Tools Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: anand Mohan, brett.cannon
Priority: normal Keywords:

Created on 2019-07-31 16:49 by anand Mohan, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
CurrentRegion.Example.png anand Mohan, 2019-07-31 16:49
Messages (2)
msg348815 - (view) Author: anand Mohan (anand Mohan) * Date: 2019-07-31 16:49
Excel has a CurrentRegion Method that is invoked as 
Range(range_string).CurrentRegion

The Idea behind this is to choose a region that have contiguous blank cells on all sides ( except the case of 1 column and 1 row ) that separate

I have Python code that I written to accomplish this Method. I have extended the CellRange class and added the methodand it is working as expected.

Please let me know if this will be a useful feature and I will submit code. 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 fro Current Region is expected to work (for reference from the link
https://www.excel-easy.com/vba/examples/currentregion.html

Here is additional reference to the Method as implemented in Excel VBA
https://docs.microsoft.com/en-us/office/vba/api/excel.range.currentregion
msg348816 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-07-31 16:59
This is the issue tracker for Python itself, not openpyxl, so this isn't the right place to report this. I would go to openpyxl's website and see where they specify to report bugs.
History
Date User Action Args
2022-04-11 14:59:18adminsetgithub: 81916
2019-07-31 16:59:36brett.cannonsetstatus: open -> closed

nosy: + brett.cannon
messages: + msg348816

resolution: third party
stage: resolved
2019-07-31 16:49:40anand Mohancreate