Je précise que j'ai effectué des recherches sur le forum car je suis plus que surpris de n'avoir rien trouvé ici à ce sujet (Au risque de passer non pas pour un imbécile, mais pour un aveugle du coup ^^).
Je cherche a effectuer une rechercheV dans un fichier excel lorsqu'il est fermé.
En gros, j'ai une variable dans autoit. Cette variable, je veux la chercher (dans Excel) dans colonne A, et afficher (dans Autoit) la valeur de la colonne B (située dans Excel).
Merci aux pères Noël

Julien.
Edit 1: voici l'url du forum ou j'ai trouvé le bout de code, il reste maintenant à l'adapter à mon usage.
https://www.autoitscript.com/forum/topi ... 3-vlookup/
Edit 2: J'ai réussi entre temps à mettre à jour le script qui datait de 2009 donc plus besoin d'aide pour ça, voyez plutot:
#Include <Excel.au3>
$sFilePath1 = "C:\Users\XXX\Desktop\lookup.csv"
$oExcel = _Excel_BookOpen(_Excel_Open(),$sFilePath1)
#Include <Array.au3>
$aArray = _Excel_RangeRead($oExcel) ;Using Default Parameters
_Excel_BookClose($oExcel) ; And finally we close out
_ArrayDisplay($aArray, "Array using Default Parameters")
#include <Array.au3>
$sSearch = "Ref2"
If @error Then Exit
$iIndex = _ArraySearch($aArray, $sSearch, 0, 0, 0, 1)
If @error Then
MsgBox(0, "Not Found", '"' & $sSearch & '" was not found in the array.')
Else
MsgBox(0, "Found", '"' & $sSearch & '" was found in the array at position ' & $iIndex & ".")
EndIf
$sFilePath1 = "C:\Users\XXX\Desktop\lookup.csv"
$oExcel = _Excel_BookOpen(_Excel_Open(),$sFilePath1)
#Include <Array.au3>
$aArray = _Excel_RangeRead($oExcel) ;Using Default Parameters
_Excel_BookClose($oExcel) ; And finally we close out
_ArrayDisplay($aArray, "Array using Default Parameters")
#include <Array.au3>
$sSearch = "Ref2"
If @error Then Exit
$iIndex = _ArraySearch($aArray, $sSearch, 0, 0, 0, 1)
If @error Then
MsgBox(0, "Not Found", '"' & $sSearch & '" was not found in the array.')
Else
MsgBox(0, "Found", '"' & $sSearch & '" was found in the array at position ' & $iIndex & ".")
EndIf