atzoref Posted July 10, 2012 Share Posted July 10, 2012 (edited) Hi, My script refuse to stop its proccess until I do it by myself with "Stop Executing" I see this error in the log: C:\Program Files (x86)\AutoIt3\Include\Excel.au3 (416) : ==> The requested action with this object has failed.: If $fSave Then $oExcel.ActiveWorkBook.Save() If $fSave Then $oExcel.ActiveWorkBook.Save()^ ERROR Why I get this? The functions of the excel which I work with are: $oExcel = _ExcelBookOpen($) _ExcelReadCell($oExcel, $, $) _ExcelBookClose($oExcel) Thanks. Edited July 10, 2012 by atzoref Link to comment Share on other sites More sharing options...
water Posted July 10, 2012 Share Posted July 10, 2012 Which version of Excel do you run? The 32 or the 64 bit version? Which version of AutoIt do you run? Do you compile for 32 or 64 bit? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
atzoref Posted July 10, 2012 Author Share Posted July 10, 2012 Excel 2007 = 64 bit Autoit v3 SciTE Version 2.28 I don't know about the "compile" I just run it with "GO" on tools menu on SciTE Link to comment Share on other sites More sharing options...
water Posted July 10, 2012 Share Posted July 10, 2012 The 64 bit version of Office seems to be unreliable and is not recommended by MS itself. There has been a discussion on this forum some time ago (sorry, don't have the time to search for it right now). Everyone recommends the 32 bit version opf Office. You have to make sure that the AutoIt script is compiled/run with the same bitness as Office. Add "#AutoIt3Wrapper_UseX64=Y" at the top of your script to run/compile it for 64 bit and see what you get. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
atzoref Posted July 10, 2012 Author Share Posted July 10, 2012 It seems that the problem was with the function: _ExcelBookClose($oExcel) So I just using now: WinClose("Excel") and it is ok now. Link to comment Share on other sites More sharing options...
water Posted July 10, 2012 Share Posted July 10, 2012 The discussion I was referring to can be found My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
atzoref Posted July 10, 2012 Author Share Posted July 10, 2012 When I press F5 on SciTE, how it compile the script? 32 or 64? Link to comment Share on other sites More sharing options...
water Posted July 10, 2012 Share Posted July 10, 2012 As I mentioned in post #4 add the #AutoIt3Wrapper_UseX64 directive. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now