1 2 3 4 5 6 7 8
|
For ii = 10 To derlig3
With feuil_doc
.Range("C" & ii).Value = (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 3, False)) * Range("B" & ii)
.Range("D" & ii).Value = (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 11, False)) * Range("C" & ii)
.Range("E" & ii).Value = (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 2, False)) & " x " & (Range("B" & ii) / (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 2, False)))
.Range("F" & ii).Value = (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 12, False)) & " - " & (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 5, False)) & " - " & (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 6, False)) & " - " & (WorksheetFunction.VLookup(.Range("A" & ii).Value, Sheets("Produits").Range("Produits"), 7, False))
End With |