ExcelCOM 1.32 with AutoIt v3.2.4.9, Excel 2000, WinXP
Can't get the _ExcelReplaceInRange() to work. I just get a general error dialog with no hint of the problen on this line:
$oExcel.Selection.Replace($sFindWhat, $sReplaceWith, $iWholeOrPart, Default, $fMatchCase, Default, $fMatchFormat, $fReplaceFormat)
Tried a few different things - some test code:
$oExcel = _ExcelBookOpen("my.xls", 1, False)
;$msg = _ExcelReplaceInRange($oExcel, "FIND", "REPLACED", 1, 1, 10, 10, 2, True, False, False)
$msg = _ExcelReplaceInRange($oExcel, "FIND", "REPLACED", "A1:T20" , 1, 1, 1, 2, True, False, False)
If $msg = 0 Then
MsgBox(0, "Error", "@error = " & @error)
EndIf
_ExcelBookClose($oExcel, 1, 0)
See anything?