Sign in to follow this  
Followers 0
CCMgmt

Excel to Array Script Broken with upgrade from 3.3.8.1 to 3.3.12.0

3 posts in this topic

Why am I getting an error = 5, extended = -274XXXXXX when I run this script?  My original script worked fine with 3.3.8.1

CODE FROM 3.3.8.1 Working script before Upgrade

[

$sFilePath1 = "C:UsersrootDocumentsTuan_Menu_Prog_RV6.xlsm"

Func ReadArray()
Local $oExcel = "$sFilePath1"
Local $oExcel = _ExcelBookOpen($sFilePath1,0 ,True) ;Open Excel book Read Only, make it Hidden
;Msgbox(0,"@ErrorOpen", @error, 8)
$aArray = _ExcelReadSheetToArray($oExcel, 8, 1, 680 ,39 , False) ;Starting on the 8tht Row, 1st Column, Row Count 10, Column Count 38,
;Msgbox(0,"@ErrorRead", @error, 8)
;Msgbox(0,"@Extended", @error, 8)
;_ArrayDisplay($aArray, "Starting on the 2nd Column")
_ExcelBookClose($oExcel) ; And finally we close out
$Rows = UBound($aArray)
MsgBox(4096, "Spreadsheet Status:", "Spreadsheet Read into System. Click OK to continue with database programing.")

]

Since upgrade I can't get the script to read to array. Please See attached Script that Errors out.

Trying to repair this small bit of code.

Thank you in advance for any help.

Tres!ItemPrograming_RV10_.au3

Share this post


Link to post
Share on other sites



The Excel UDF haxs been rewritten.

Please have a look at the script breaking changes in the changelog.

A link there leads to details about the changes to the Excel UDF.

More information can be found in the wiki.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

a temporary fix until you are able to re-write your scripts would be to download an older version of AutoIt and copy the old Excel UDF into your Include folder so that you can still use the old functions.

:alien:


if @error Then
	MsgBox(262192,"",@ComputerName&" slaps "&@UserName&" around a bit with a large trout!")
	EndIf

>Exit code: 0

REAL search results

"Yeah yeah yeah, patience. How long will that take?"  -Ed Gruberman

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0