I'm using python 2.4, Win XP Pro v.2002 sp3, and I use pyscripter 1.9.9.2 as my editor.
I have written code to open an existing excel file and grab some data. The problem I am having is closing down the excel application. Here some "bits" of the code I am using:
Expand|Select|Wrap|Line Numbers
- xlApp = Dispatch("Excel.Application")
- xlApp.Workbooks.Open(Filename = path+fname)
Expand|Select|Wrap|Line Numbers
- xlApp.Workbooks.Close()
Expand|Select|Wrap|Line Numbers
- xlApp.quit()
Can anyone tell me what I might be doing wrong.
Thanks in advance.
Silgd1