Bonjour,
Je souhaiterai lire des données presentes dans certaines cellule d´une feuille excel en programmant sous VB6
Je doit tout d abord charger (la faire apparaitre ou non a l ecran)la feuille et ensuite et ensuite adresser un nom de variable au contenu de certaine cellule
Pouvez vous m aider?
Merci d avance
Voila le debut de mon prog mais rien ne semble se passer, rien ne s affiche et il y a des erreurs
Dim xclApp As Excel.Application
Dim boolAppLoad As Boolean
Dim xclWbk As Excel.Workbook
Dim boolWbkLoad As Boolean
Dim xclSht As Excel.Worksheet
On Error Resume Next
Err.Clear
Set xclApp = GetObject(, "Excel.Application")
If (Err.Number <> 0) Then
Err.Clear
boolAppLoad = True
Set xclApp = CreateObject("Excel.Application")
xclApp.Visible = True
Else
boolAppLoad = False
End If
Set xclWbk = xclApp.Workbooks.Item("J:\Wake.xls")
If (Err.Number <> 0) Then
Err.Clear
boolWbkLoad = True
Set xclWbk = xclApp.Workbooks.Open("C:\Wake.xls", , , , , , , , , , , , False)
Else
boolWbkLoad = False
End If
Set xclSht = xclWbk.Worksheets(1)
xclWbk.Worksheets("Parameters").Visible = True
un probleme apparait ici
Text1.Text = "" & xclWbk.Worksheets.Cell(B, 5)