Skip to content
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

Feature request - access workbook definedNames #36

Closed
harmon25 opened this issue Mar 30, 2017 · 1 comment
Closed

Feature request - access workbook definedNames #36

harmon25 opened this issue Mar 30, 2017 · 1 comment

Comments

@harmon25
Copy link

Great library!
One feature that would be nice, is the ability to extract the named ranges, or definedNames from an xlsx workbook or - xl\workbook.xml from the zip archive.

They are defined like this:

<definedNames>
 <definedName name="named_range_test1">Sheet1!$A$2:$C$40</definedName>
 <definedName name="named_range_test2">Sheet2!$G$2:$G$5</definedName>
</definedNames>

I use this to guide extraction of data from an excel sheet, rather than having ranges or references defined in the code - it is extracted from the workbook itself to guide parsing of cell values.

This is the openpyxl documentation of the feature for reference.

I am just learning go or would try making a pull request... am happy to help with testing though!

Thanks! 😃

@harmon25
Copy link
Author

whooops just notices the method on the workbook interface - closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant