Rigest 0 Posted November 12, 2010 So all of a sudden all my AutoIT script arn't working anymore. In each script I get an error that some functions are missing the Endfunc statement (which isn't true). Sometimes they even say there are errors in UDF (in which I havn't changed anything): C:\Program Files\AutoIt3\Include\Excel.au3 (144) : ==> "Func" statement has no matching "EndFunc".: Func _ExcelBookNew($fVisible = 1) N:\Auto IT\Scripts\Scripts in progress\klantenservice v1.6.au3 (19) : ==> "Func" statement has no matching "EndFunc".: Func GUI() I really have no clue what I did wrong. I didn't install anything new or did anything weird.... anyone ever experienced something like this? How can I fix it? Share this post Link to post Share on other sites
water 2,392 Posted November 12, 2010 Can you post the klantenservice v1.6.au3 so we can have a look at it? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
jvanegmond 306 Posted November 12, 2010 This problem: C:\Program Files\AutoIt3\Include\Excel.au3 (144) : ==> "Func" statement has no matching "EndFunc".: Func _ExcelBookNew($fVisible = 1) Seems to be caused like a bad install of AutoIt or something similar. That.. Or you're declaring functions (partly) before you do includes? Like this (in error): Func HowDidThisGetHereIAmNotGoodWithComputer() #include <Excel.au3> I think that can cause the same problem. github.com/jvanegmond Share this post Link to post Share on other sites
Rigest 0 Posted November 12, 2010 (edited) Tnx. Edited July 28, 2011 by Rigest Share this post Link to post Share on other sites
water 2,392 Posted November 12, 2010 (edited) I tested your script and everything runs fine here. I think Manadar is right with the assumption that your AutoIT installation is broken. Reinstall and see what happens. Edited November 12, 2010 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Rigest 0 Posted November 12, 2010 I tested your script and everything runs fine here.I think Manadar is right with the assumption that your AutoIT installation is broken. Reinstall and see what happens.I did. I installed it on a different pc and tried it on another user account. I don't think it's the installation because it worked fine before... :s Share this post Link to post Share on other sites
water 2,392 Posted November 12, 2010 Next thing I would do is check the include files.Go to the C:\Program Files\AutoIt3\Include AND the directory where your script is stored and sort the *.au3 files by date. Any files changed lately?The only files I couldn't find on my system where Outlook.au3 and Santander UDF v1.0.au3. So I created some dummy functions.Open this two UDFs in SciTE and run the Syntax Check (Ctrl+F5)As UDFs can include UDFs the problem might be with a nested UDF. So be sure to check all UDFs you've changed lately. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Rigest 0 Posted November 12, 2010 Tnx Water, you helped me once again ! Apparently someone else was messing around in one of my UDF's. Luckily I had a backup. Cheers! Share this post Link to post Share on other sites
water 2,392 Posted November 12, 2010 Glad the problem could be solved! Have a nice weekend! My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites