Bonsoir,
J'ai créer un fichier VBS pour remplir automatiquement des champs d'un logiciel
Comment faire pour récupérer la valeur d'une cellule d'un fichier Excel ?
set shell = WScript.CreateObject("WScript.Shell" )
shell.AppActivate "Easy Access"
WScript.Sleep(3000) ' Attendre 3 secondes
shell.SendKeys "ZZ30"
shell.SendKeys "~"
WScript.Sleep(2000) ' Attendre 2 secondes
shell.SendKeys "{DEL}{DEL}{DEL}"
shell.SendKeys "120"
shell.SendKeys "{DOWN}{DOWN}{DOWN}"
shell.SendKeys "76500"
shell.SendKeys "~"
WScript.Sleep(2000) ' Attendre 2 secondes
shell.SendKeys "{TAB}"
shell.SendKeys "ACC{TAB}"
shell.SendKeys valeur_cellule_excel 'Valeur de la cellule A1 du fichier Toto.xls
<hr size ="2" width="100%" />