How To Read Excel Files In Python?

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Tue Dec 13 15:58:30 EST 2005


Hi!


I had few modif. your code :

import time
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible=True
xlWb = xlApp.Workbooks.Open("Read.xls")
print "D3:",xlWb.ActiveSheet.Cells(3,4).Value
time.sleep(2)
xlWb.Close(SaveChanges=0)
xlApp.Quit()

This run OK on my computers.



@-salutations

Michel Claveau






More information about the Python-list mailing list