From: "Eduardo Silva" <market...@expresssignproducts.com>
Date: Fri, 19 Jun 2009 09:53:55 -0600
Local: Sat, Jun 20 2009 1:53 am
Subject: RE: [pyxl] Re: Script to convert from XLSX to XLS
> -----Original Message----- [My comments] I recall once doing a batch conversion of xls to xlsx with a tool provided for free download on the Microsoft's site. I can't recall if they had one for the same: xlsx to xls. > From: python-excel@googlegroups.com [mailto:python- > excel@googlegroups.com] On Behalf Of vasudevram > Sent: Thursday, June 18, 2009 6:46 PM > To: python-excel > Subject: [pyxl] Re: Script to convert from XLSX to XLS > On Jun 15, 9:29 pm, Michael <selmo2...@gmail.com> wrote: > > This script is to be executed in the directory of XLSX workbooks > > import glob > > xlsx_files = glob.glob('*.xlsx') > > if len(xlsx_files) == 0: > > xlApp = win32com.client.Dispatch('Excel.Application') > > for file in xlsx_files: > > xlApp.Quit() > > # Delete or comment out the following lines if you want to preserve > > time.sleep(2) # give Excel time to quit, otherwise files may be > Interesting approach. > For a possibly limited but cross-platform way (i.e. don't need to be You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||