python integrated with activex

Solutions on MaxInterview for python integrated with activex by the best coders in the world

showing results for - "python integrated with activex"
Adil
02 Feb 2017
1import win32com.client
2
3xlApp = win32com.client.Dispatch("Excel.Application")
4xlApp.Visible=1
5
6workBook = xlApp.Workbooks.Open(r"C:\MyTest.xls")
7print str(workBook.ActiveSheet.Cells(i,1))
8workBook.ActiveSheet.Cells(1, 1).Value = "hello"                
9workBook.Close(SaveChanges=0) 
10xlApp.Quit()