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
|
Private Sub cb1_Click()
'création du controle
insert_controles
'changement de mode afin d'afficher 2 usf simultanés
Me.Hide
Me.Show 0
usf_verif.Show 0
'invisibilité de certaines options incoherente avec la fonction(élèves absents)
usf_verif.CommandButton1.Visible = False
usf_verif.Label14.Visible = False
usf_verif.obabs.Visible = False
'màj de usf_verif
With usf_verif
.OptionButton1.Value = Me.OptionButton1.Value
.OptionButton2.Value = Me.OptionButton2.Value
.OptionButton3.Value = Me.OptionButton3.Value
.lbmat = Me.lbmat
.lbdom.List = Me.lbdom.List
.lbdom.ListIndex = Me.lbdom.ListIndex
.lbdis.List = Me.lbdis.List
.lbdis.ListIndex = Me.lbdis.ListIndex
End With
usf_verif.lbsujet.AddItem
usf_verif.lbsujet.List(0, 0) = Me.tbdate.Value
usf_verif.lbsujet.List(0, 1) = Me.tbsujet.Value
usf_verif.lbsujet.List(0, 2) = Sheets("feuil1").Range("l2")
usf_verif.lbsujet.ListIndex = 0
Unload Me
usf_verif.Hide
'mise en mode modal de l'usf
usf_verif.Show 1
End Sub |
Partager