MarkMontemuro Posted October 23, 2014 Share Posted October 23, 2014 I downloaded the latest version of AutoIT in order to get the enhanced performance _ExcelReadSheetToArray function. I'm reading in large excel sheets to an array to compare data & the earlier versions of this function takes a very long time. According to posts, the latest version 3.3.12 has the new Excel UDF that supposedly fixes this problem. With the latest install, I can't find this function in the file. Any suggestions of where I can download a version that has the fix Link to comment Share on other sites More sharing options...
water Posted October 23, 2014 Share Posted October 23, 2014 The function has been replaced by function _Excel_RangeRead. 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...
MarkMontemuro Posted October 23, 2014 Author Share Posted October 23, 2014 Same Input Params as the old & same return values? Link to comment Share on other sites More sharing options...
water Posted October 23, 2014 Share Posted October 23, 2014 (edited) Lot of changes. Please check the help file and the script breaking changes section of the help file. Edited October 23, 2014 by water 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...
MarkMontemuro Posted October 23, 2014 Author Share Posted October 23, 2014 Thanks for your help, Will do Link to comment Share on other sites More sharing options...
MarkMontemuro Posted October 29, 2014 Author Share Posted October 29, 2014 In the previous call I was able to specify a row/column for my ReadCell for example; " _ExcelReadCell($oExcel, $iRows,2)". Can I still use this in the new call _Excel_RangeRead? I can only find examples using this format _Excel_RangeRead($oExcel,Default,"C2"). I do calculations to read cells from certain offsets, $iRows. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 29, 2014 Moderators Share Posted October 29, 2014 The examples included in the help file show reading a single cell, a group of cells, and an entire colunm. Can you please specify what you are trying to do that won't work with _Excel_RangeRead? An example that did work in the old would be beneficial. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
MarkMontemuro Posted October 29, 2014 Author Share Posted October 29, 2014 This worked in the previous call1st Date is:20001030 Last Date is:20141028using the code below.ConsoleWrite("1st Date is:"&_ExcelReadCell($oExcel, 3,2)&" Last Date is:"&_ExcelReadCell($oExcel, $iRows,2)&@CRLF)Question is how do I then use the Row,Col format in _Excel_RangeRead? Link to comment Share on other sites More sharing options...
water Posted October 29, 2014 Share Posted October 29, 2014 The new Excel UDF only supports A1 notation. R1C1 support has been dropped. But there are functions to translate to/from A1 notation. 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...
AdamUL Posted October 29, 2014 Share Posted October 29, 2014 Here give this a try. This is a direct translation to show using the new UDF. Notice that it is using a workbook object, instead of an application object. ConsoleWrite("1st Date is:" & _ExcelRangeRead($oWorkbook, Default, _Excel_ColumnToLetter(2) & "3") & " Last Date is:"& _ExcelRangeRead($oWorkbook, Default, _Excel_ColumnToLetter(2) & $iRows) & @CRLF) Adam 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