et fichier excel [VBS] - VB/VBA/VBS - Programmation
Marsh Posté le 07-10-2005 à 15:21:30
http://msdn.microsoft.com/library/ [...] 132004.asp
Marsh Posté le 08-10-2005 à 14:12:25
Sachant que : objExcel.Cells(intRow,1)  
introw sont les lignes 
et 1 les colonnes 
 
Set objExcel = CreateObject("Excel.Application" ) 
Set objWorkbook = objExcel.Workbooks.Open _ 
    ("C:\Scripts\Fichier.xls" ) 
intRow = 2 
Do Until objExcel.Cells(intRow,1).Value = "" 
    Wscript.Echo "CN: " & objExcel.Cells(intRow, 1).Value 
    Wscript.Echo "sAMAccountName: " & objExcel.Cells(intRow, 2).Value 
    Wscript.Echo "GivenName: " & objExcel.Cells(intRow, 3).Value 
    Wscript.Echo "LastName: " & objExcel.Cells(intRow, 4).Value 
    intRow = intRow + 1 
Loop 
objExcel.Quit 
Marsh Posté le 07-10-2005 à 15:10:48
Bonjour,
En vbs, comment récupérer les valeurs venant des cellules d'un tableau excel?
Merci de vos conseils.