Hi when i try to load a workbook i get this error:
Traceback (most recent call last):
File "<pyshell#72>", line 1, in <module>
wb = load_workbook("861-2010-inventorycalculator.xlsm")
File "C:\Python27\lib\openpyxl\reader\excel.py", line 81, in load_workbook
raise e
NamedRangeException: Invalid named range string: "OFFSET('Custom Fuel Mix'!DynamicYear"
I think it has to do with the file itself but has anyone ever run into a similar error and knows what to do?
--To view this discussion on the web, visit https://groups.google.com/d/msg/python-excel/-/HO4JnRKJmVIJ.
You received this message because you are subscribed to the Google Groups "python-excel" group.
To post to this group, send an email to python...@googlegroups.com.
To unsubscribe from this group, send email to python-excel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
Actually, you did post the whole error the first time. John Machin
only quoted up to the point of interest for his purposes.
Why don't you try answering John Machin's questions (so that it will
be easier for him or anyone else to help you), or following his
suggestion to ask for help on the forum devoted to openpyxl?
John Y.
--
You received this message because you are subscribed to the Google Groups "python-excel" group.
Im using version 1.5.1.And i dont know how these were created, i was just given them to work with. But I can open them. How do i look at the named ranges?
Would the OP be better off with xlrd?
I can't remember if it supports named ranges or not...
Still, Mr Telmer hasn't exactly been forthcoming about his aims...
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
The OP is trying to open .xlsm file, so for now needs openpyxl.
Perhaps he would be better off (generally) with xlsxrd, though....
John Y.
It would be great if that could just be merged into xlrd and put out in
the real world.
Mindyou, I find it somewhat frustrating that both xlrd and xlwt are
overdue a release by at least a year now. There's plenty on the trunk of
both packages that should be out there now...
John M. seems rather reluctant to reply to any mails from me, I really
have no idea why and I'm really not sure what to do...
Ideas?