1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
'Ouverture du fichier de suivi de la charge CIC sur les PUPE
Set wbanalyse = Workbooks.Open(fichieranalyse)
'Copie des données CT001
Set wsanalyse = wbanalyse.Sheets("CT001")
ligne = wsanalyse.Range("A1").End(xlDown).Row + 1
'Date
wsanalyse.Cells(ligne, "A").Value = wstemp.Cells(1, "B").Value
wsanalyse.Cells(ligne, "A").NumberFormat = "m/d/yyyy"
'Valeurs
wsanalyse.Cells(ligne, "B").Value = wstemp.Cells(3, "B").Value
wsanalyse.Cells(ligne, "C").Value = wstemp.Cells(4, "B").Value
wsanalyse.Cells(ligne, "D").Value = wstemp.Cells(5, "B").Value
wsanalyse.Cells(ligne, "E").Value = wstemp.Cells(6, "B").Value
wsanalyse.Cells(ligne, "F").Value = wstemp.Cells(7, "B").Value
wsanalyse.Cells(ligne, "G").Value = wstemp.Cells(8, "B").Value
wsanalyse.Cells(ligne, "H").Value = wstemp.Cells(9, "B").Value
wsanalyse.Cells(ligne, "I").Value = wstemp.Cells(10, "B").Value
'Copie des données CT010
Set wsanalyse = wbanalyse.Sheets("CT010")
ligne = wsanalyse.Range("A1").End(xlDown).Row + 1
'Date
wsanalyse.Cells(ligne, "A").Value = wstemp.Cells(1, "B").Value
wsanalyse.Cells(ligne, "A").NumberFormat = "m/d/yyyy"
'Valeurs
wsanalyse.Cells(ligne, "B").Value = wstemp.Cells(13, "B").Value
wsanalyse.Cells(ligne, "C").Value = wstemp.Cells(14, "B").Value
wsanalyse.Cells(ligne, "D").Value = wstemp.Cells(15, "B").Value
wsanalyse.Cells(ligne, "E").Value = wstemp.Cells(16, "B").Value
'Copie des données CT032
Set wsanalyse = wbanalyse.Sheets("CT032")
ligne = wsanalyse.Range("A1").End(xlDown).Row + 1
'Date
wsanalyse.Cells(ligne, "A").Value = wstemp.Cells(1, "B").Value
wsanalyse.Cells(ligne, "A").NumberFormat = "m/d/yyyy"
'Valeurs
wsanalyse.Cells(ligne, "B").Value = wstemp.Cells(19, "B").Value
wsanalyse.Cells(ligne, "C").Value = wstemp.Cells(20, "B").Value
wsanalyse.Cells(ligne, "D").Value = wstemp.Cells(21, "B").Value
wsanalyse.Cells(ligne, "E").Value = wstemp.Cells(22, "B").Value
wsanalyse.Cells(ligne, "F").Value = wstemp.Cells(23, "B").Value
wsanalyse.Cells(ligne, "G").Value = wstemp.Cells(24, "B").Value
wsanalyse.Cells(ligne, "H").Value = wstemp.Cells(25, "B").Value
wsanalyse.Cells(ligne, "I").Value = wstemp.Cells(26, "B").Value |
Partager