[BangPypers] Excel and Python

Satheesh Babu Vattekkat vsbabu at gmail.com
Wed Sep 2 14:32:42 CEST 2009

Check out win32com (I am assuming you want to do this from a Windows
machine).  Here is a small snippet on reading the value from cell A1 in the
active sheet.
from win32com.client import Dispatch
flxls = "c:\\my\\file.xls"
xl = Dispatch ("Excel.Application")
xl.Visible = True
workbook = xl.ActiveWorkbook
sheet = xl.ActiveSheet
param_1 = sheet.Cells(1,1).Value
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090902/91109dba/attachment.htm>

More information about the BangPypers mailing list