I believe, that in your case obook.close() leaves Excel uncertain about whether you want to save or not, and if you have Excel.visible=.t., then it should show the messages waiting for user responce.
Try:
obook.close(.T.)
(and/or oExcel.DisplayAlerts = .f.)
>I am wondering if I am doing something wrong here but I am using automation (thanks to all of you) to extract a large amount of data from Excel.
>At the end of the program I use
>
>obook.close()
>oexcel.quit
>
>I noticed some problems after this. Everything is closed but on the task manager it still shows Excel as a running process. Has anyone else experienced the same thing?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement