Just came across xlrd the other day and experimenting with it.
What you are looking for you can find under "The Book Class" on the
following page
https://secure.simplistix.co.uk/svn/xlrd/trunk/xlrd/doc/xlrd.html
E.g. you could do something like this:
wb = xlrd.open_workbook('yourfile.xls')
sNames = wb.sheet_names()
for sname in sNames:
s = wb.sheet_by_name(sname)
Werner
--
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.
Who is imposing this insane requirement on you?
> I came close with a combination of the xml and zipfile modules, but
> haven't got it just yet.
Are you dealing with .xls or .xlsx?
John, how's the merge of .xlsx support into xlrd coming?
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
Can you include xlrd as part of your program?
Well, xlrd does have an add-on (currently called xlsxrd) that handles
.xlsx. Since it's pure Python, Ian is suggesting that you just bundle
it with your program. (That is, you don't have to "install" it on the
target system, rather it can just be packaged together with the
program you are writing yourself. The xlrd and xlsxrd parts just need
to retain all the copyright notices, disclaimers, and so forth.)
John Y.
I'm glad that you were able to get done what you needed, but is there
some reason you opted not to use xlsxrd? Especially considering that
you did use xlrd?
John Y.