Sub LitChamp(ChampOuCopier, Chemin, Fichier, onglet, ChampAlire)
Range(ChampOuCopier).FormulaArray = "='" & Chemin & "\[" & Fichier & "]" & onglet & "'!" & ChampAlire
Range(ChampOuCopier) = Range(ChampOuCopier).Value
Dim t(), i As Integer, j As Integer, k As Integer
t = Range(ChampOuCopier)
For i = LBound(t, 1) To UBound(t, 1)
For j = LBound(t, 2) To UBound(t, 2)
For k = LBound(t, 3) To UBound(t, 3)
If t(i, j, k) = 0 Then t(i, j, k) = ""
Next k
Next j
Next i
Range(ChampOuCopier) = t
End Sub
Sub MAJ_Chr()
'test ADO
ChampOuCopier = "B6:D372"
Chemin = "H:\test"
Fichier = "MAS_Caisse_Centrale.xls"
onglet = "SAISIE"
ChampAlire = "E7:G373" ' ou "MaBD"
LitChamp ChampOuCopier, Chemin, Fichier, onglet, ChampAlire
'Données de CCA
' Windows("MAS_Caisse_Centrale.xls").Activate
' Sheets("SAISIE").Select
' Range("E7:G373").Select
' Selection.Copy
' Windows("Calcul pointage.xls").Activate
Sheets("Christophe").Select
Range("B6").Select
' Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
' :=False, Transpose:=False
Range("B6").Select
End Sub