Jump to content

Recommended Posts

Posted

Greetings!

So I have been enjoying leveraging the Excel UDF but have run into a little trouble with the _Excel_RangeReadEx function.

I am getting an error that says this : 

  Quote

"C:\Program Files (x86)\AutoIt3\Include\Excel.au3" (656) : ==> The requested action with this object has failed.:
$aResult[$iIndex][1] = $oMatch.Name.Name
$aResult[$iIndex][1] = $oMatch^ ERROR

Expand  

I then found this ( https://www.autoitscript.com/forum/topic/169779-excel-range-find-function-giving-bad-results/#comment-1240352 )

And gave his "Slightly modified" version of the script a go with the same error except the UDF was excel2 as I couldn't over-write the original.

The function that leverages this is as follows :

Func rangeFinder ()
   $inputDist = GUIctrlRead ($dispDist)
   Local $finderKeeper001 = _Excel_RangeFindEx ($oWorkbook, $inputDist)
   ConsoleWrite ($finderKeeper001[1])
EndFunc

The other functions within the same ( entire ) script function well so it's just this that's giving me issues.

In summary I am just looking for the script to locate the cell(s) that contain that value and return it's location so I can then further process things in my little world :)

Thanks for your time!

Posted

That's a problem with the 3.3.14.2 version of AutoIt and the way it handles COM Errors (means: It's a bug.)
There is another thread where I describe the problem and IIRC provide a solution. Need to do some Research ;) 

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

:) 

My UDFs and Tutorials:

  Reveal hidden contents

 

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
×
×
  • Create New...