... and the code wasn't trying to do any of that.
xlrd doesn't support the extraction of formulas at the moment. When it
does ...
>
> How do I make the change of the above codes to copy them?
... you'd be wanting to use xlutils instead of reinventing large slabs
of it.
>
> I want to change the above codes to copy the first sheets of several
> workbooks in the current directory and copy them into one output
> workbook and save also into the current directory.
> Any suggestions?
General suggestion: work through (or at least read) the tutorial at
http://www.python-excel.org/
About your particular problem: see response to your next message.
Cheers,
John
1. At the moment, COM is the only possibility.
2. Google is your friend e.g.
http://www.vbaexpress.com/kb/getarticle.php?kb_id=829
3. Don't top-post.
4. Quote only the relevant parts of any message that you are replying
to, especially when it's your own.
Cheers,
John