Bonjour à tous
j'aimerais simplifier ma macro qui prend un certain temps.
Je remplis une boite de dialogue via textbox, combobox etc
A chaque validation de mon bouton cela remplit 15 lignes.
Je vous donne un extrait. Est t'il possible de simplifier cela?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    .Cells(lig1, "U") = S1.Value
    .Cells(lig1 + 1, "U") = S2.Value
    .Cells(lig1 + 2, "U") = S3.Value
    .Cells(lig1 + 3, "U") = S4.Value
    .Cells(lig1 + 4, "U") = S5.Value
    .Cells(lig1 + 5, "U") = S6.Value
    .Cells(lig1 + 6, "U") = S7.Value
    .Cells(lig1 + 7, "U") = S8.Value
    .Cells(lig1 + 8, "U") = S9.Value
    .Cells(lig1 + 9, "U") = S10.Value
    .Cells(lig1 + 10, "U") = S11.Value
    .Cells(lig1 + 11, "U") = S12.Value
    .Cells(lig1 + 12, "U") = S13.Value
    .Cells(lig1 + 13, "U") = S14.Value
    .Cells(lig1 + 14, "U") = S15.Value
Merci d'avance de vos réponses.

A bientot