Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python open excel application

from win32com.client import Dispatch

xl = Dispatch("Excel.Application")
xl.Visible = True # otherwise excel is hidden

# newest excel does not accept forward slash in path
wb = xl.Workbooks.Open(r'C:Users300231823DesktopGUIsimplenew4.xls')
wb.Close()
xl.Quit()
 
PREVIOUS NEXT
Tagged: #python #open #excel #application
ADD COMMENT
Topic
Name
9+6 =