1from win32com.client import Dispatch
2
3xl = Dispatch("Excel.Application")
4xl.Visible = True # otherwise excel is hidden
5
6# newest excel does not accept forward slash in path
7wb = xl.Workbooks.Open(r'C:\Users\300231823\Desktop\GUI\simplenew4.xls')
8wb.Close()
9xl.Quit()
10