The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Michael <selmo2...@gmail.com>
Date: Mon, 15 Jun 2009 09:29:41 -0700 (PDT)
Local: Tues, Jun 16 2009 2:29 am
Subject: Script to convert from XLSX to XLS
Recently I needed to quickly convert XLSX workbooks to XLS workbooks
so I could then interact with them via xlrd. Here it is, hopefully it will be useful to someone. :) Note that pywin32 is required to interact with Excel 2007, so unfortunately this script will work only on Windows with Excel 2007 installed. 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 locked
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.
| ||||||||||||||