Bonjour
@Lolote83
Merci d'avoir pris le temps de regarder mon post pour commencer,
Effectivement sur la L7 l'utilisateur peux choisir plusieurs items
j'ai réussi à coder pour remplir les champs mais je ne sais pas comment incrémenter pour les cases à cocher vi quelles ne sont pas affiliées à une cellule
voici mon code actuel:
Sub Bouton34_Cliquer()
Dim Ws1, Ws2
Set Ws1 = Sheets("FAFNC"): Set Ws2 = Sheets("TDS FAFNC")
Dim Last
Last = Ws2.[A65000].End(xlUp).Row
Ws2.Cells(Last + 1, "A") = [I2]
Ws2.Cells(Last + 1, "B") = [C4]: Ws2.Cells(Last + 1, "B").NumberFormat = "dd/mm/yyyy"
Ws2.Cells(Last + 1, "C") = [F4]
Ws2.Cells(Last + 1, "D") = [F5]
Ws2.Cells(Last + 1, "E") = [K4]
Ws2.Cells(Last + 1, "F") = []
Ws2.Cells(Last + 1, "G") = []
Ws2.Cells(Last + 1, "H") = [C10]
Ws2.Cells(Last + 1, "I") = [C11]
Ws2.Cells(Last + 1, "J") = [I10]
Ws2.Cells(Last + 1, "K") = [D13]
Ws2.Cells(Last + 1, "L") = [H13]
Ws2.Cells(Last + 1, "M") = [K13]
Ws2.Cells(Last + 1, "N") = [A18]
Ws2.Cells(Last + 1, "O") = []
Ws2.Cells(Last + 1, "P") = []
Ws2.Cells(Last + 1, "Q") = []
Ws2.Cells(Last + 1, "R") = []
Ws2.Cells(Last + 1, "S") = [B40]
Ws2.Cells(Last + 1, "T") = [G40]
Ws2.Cells(Last + 1, "U") = []
Ws2.Cells(Last + 1, "V") = [L40]: Ws2.Cells(Last + 1, "V").NumberFormat = "dd/mm/yyyy"
Ws2.Cells(Last + 1, "W") = [L41]: Ws2.Cells(Last + 1, "W").NumberFormat = "dd/mm/yyyy"
Ws2.Cells(Last + 1, "X") = [I43]
Ws2.Cells(Last + 1, "Y") = [F49]
Ws2.Cells(Last + 1, "Z") = [L49]
Ws2.Cells(Last + 1, "AA") = []
Ws2.Cells(Last + 1, "AB") = [G55]
Ws2.Cells(Last + 1, "AC") = []
Ws2.Cells(Last + 1, "AD") = []
Ws2.Cells(Last + 1, "AE") = []
Ws2.Cells(Last + 1, "AF") = []
Ws2.Cells(Last + 1, "AG") = [B84]
Ws2.Cells(Last + 1, "AH") = [G84]
Ws2.Cells(Last + 1, "AI") = [B99]
Ws2.Cells(Last + 1, "AJ") = [B114]
Ws2.Cells(Last + 1, "AK") = [B122]
Ws2.Cells(Last + 1, "AL") = [H122]
Ws2.Cells(Last + 1, "AM") = [K122]: Ws2.Cells(Last + 1, "AM").NumberFormat = "dd/mm/yyyy"
Ws2.Cells(Last + 1, "AN") = []
Ws2.Cells(Last + 1, "AO") = []
Ws2.Cells(Last + 1, "AP") = [D131]
End Sub
Il reste cependant encore du boulo pour améliorer mon projet, surtout que j ai pas encore trouver comment faire pour inverser (prendre le numéro de FNC pour qu'il génère le remplissage du formulaire)
Encore merci à toi