-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCell() no longer works with named cells #1858
Comments
The changes to named ranges in release 1.15.0 mean relative and absolute addresses in ranges are now handled correctly (as MS Excel handles them, rather than always treating them as absolute) in formulae (previously, this was not the case). It seems that I overlooked the fact that Expect a fix to master later today, and for the 1.17.0 release. |
@MarkBaker brilliant. Thanks for the quick fix! |
Resolved |
This is:
What is the expected behavior?
Accessing a named cell reference with
getCell('CELLNAME', false)
should return the cell object.What is the current behavior?
Throws an exception: Cell coordinate must not be absolute.
It's no longer possible to access a named cell using
getCell()
, which means it's no longer possible to use PhpSpreadsheet as a 'template processor'.This worked on previous versions. Is there a workaround or could a
getNamedCell()
method be added?What are the steps to reproduce?
Use
getCell()
with a named cell.Which versions of PhpSpreadsheet and PHP are affected?
1.15.0
The text was updated successfully, but these errors were encountered: