Hi.
I'm trying to find text in my Excel. I have download the Beta of Excel UDF and I'm using the _Excel_RangeFind, but I get an error at :
Local $aSalesResult = _Excel_RangeFind($oWorkbook, "*Sales company", Default, Default, $xlWhole)
the error is:
"C:\Users\username\Documents\Appname\Excel Rewrite.au3" (607) : ==> Variable must be of type "Object".:
can someone advice me?
#include <IE.au3> #include <Excel Rewrite.au3> #include <Array.au3> Local $Openmessage = "Please, open Excel template for One4Al." Local $var = FileOpenDialog($Openmessage, @DesktopDir & "\", "Images (*.xlsx;*.xls)", 1) Global $oAppl = _Excel_Open() If @error Then MsgBox(4096, "", "No File(s) chosen") Else Global $oWorkbook = _Excel_BookOpen($oAppl, $var) ;MsgBox(4096, "", "You chose " & $var) Local $aSalesResult = _Excel_RangeFind($oWorkbook, "*Sales company", Default, Default, $xlWhole) MsgBox(4096, "", "The Cell Value is: " & $aSalesResult & @CRLF & @error, 2) _Arraydisplay($aSalesResult, "Excel UDF: _Excel_RangeFind Example 4", -1, 0, "", "|", "Col|Sheet|Name|Cell|Value|Formula|Comment") EndIf