terrypin Posted September 24, 2013 Posted September 24, 2013 This is one of my first scripts while learning some AutoIt basics: #include <Excel.au3> _ExcelBookOpen("C:\Docs\My Dropbox\FinishedWalks\WalkIndex.xls") It opened the spreadsheet in Excel 2000, but I did not get the usual macro warning. But how did it manage without adding a Send ("e") command? Excel security is set at Medium and the message always comes up if opened by manual mehods, such as by d-clicking WalkIndex.xls from XP Explorer. So I have to type 'e' (or click the Enable button) to proceed. -- Terry, East Grinstead, UK
water Posted September 24, 2013 Posted September 24, 2013 Looks like the default values for Excel 2000 are suppressing such warnings if COM is used. But Excel 2000 is very, very old. Can't you upgrade to a more current version? Excel 2007 or later? My rewrite of the Excel UDF allows to activate/deactivate such messages when connecting to Excel. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
terrypin Posted September 24, 2013 Author Posted September 24, 2013 Thanks, appreciate the fast reply. At this rookie stage of my learning I'm not sure what COM is in this context, but that sounds a convincing sort of explanation. I'm a bit more familiar with AutoHotkey. FWIW, using a similar AHK script did need the 'e' after launching the file. I use Excel too little to make an upgrade worth it. Familiarity trumps in this case! Terry, East Grinstead, UK
water Posted September 24, 2013 Posted September 24, 2013 Excel has an interface for the user: the GUI. And another to directly access the objects (cells, worksheets, workbooks etc.) and methods to manipulate them (add, delete, copy ...) and properties to set different aspects of objects (color, font, size ...) by programs like AutoIt or AHK. This is called COM. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
terrypin Posted September 24, 2013 Author Posted September 24, 2013 Thanks, water, understood. -- Terry, East Grinstead, UK
water Posted September 24, 2013 Posted September 24, 2013 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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