Bonjour,
Dans le Userform1 j'ai créé un code qui me permet de récupérer une série de valeur :
For j = 1 To 20
If Me.Controls("chk_FR" & j).Value = True Then
Worksheets("Cadence_Ejection").Select
With Worksheets("Cadence_Ejection").Cells
Cells.Find(What:="FR0" & j, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
cln = ActiveCell.Column
Cells.Find(What:=weight, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
rw = ActiveCell.Row
cadence(j) = Cells(rw, cln).Value
End With
End If
Next j
J'obtiens bien les bonnes valeurs dans cadence(1) à cadence(20) du userform1 et je voudrais les exploiter dans le userform2
Mon userform2 compte 20 labels nommés txt_fr1, txt_fr2, ..., txt_fr20 et je voudrais écrire quelque chose comme çà :
txt_fr1.caption = cadence(1)
txt_fr2.caption = cadence(2)
txt_fr20.caption = cadence(20)
Auriez vous une idée d'y parvenir ?