Bonjour tout le monde
je ne me suis pas encore présenté, alors je le ferai sous peu
Bref, j ai un petit souci qui me tracasse pour la RAZ de TextBox utilisées pour la saisie
Jai comme code :
Dim Ctrl As Control
For Each Ctrl In Me.ZoneGeneral.Controls 'ZoneGeneral c'est un frame
If TypeOf Ctrl Is MSForms.TextBox Then
Ctrl.Object.Value = ""
End If
Next Ctrl
et il ne fait rien... bizarre car j'ai modifié un code de Microsoft Help and Support pour mon besoin :
Private Sub CommandButton1_Click()
Dim x As Control
For Each x in Frame1.Controls 'Loop through the option buttons
'within the Frame
If x.Value = True Then
MsgBox x.Caption 'Display the name of the selected
End If 'option button
Next
End Sub
Avez vous des idées du pourquoi ca marche pas?
merci
je ne me suis pas encore présenté, alors je le ferai sous peu
Bref, j ai un petit souci qui me tracasse pour la RAZ de TextBox utilisées pour la saisie
Jai comme code :
Dim Ctrl As Control
For Each Ctrl In Me.ZoneGeneral.Controls 'ZoneGeneral c'est un frame
If TypeOf Ctrl Is MSForms.TextBox Then
Ctrl.Object.Value = ""
End If
Next Ctrl
et il ne fait rien... bizarre car j'ai modifié un code de Microsoft Help and Support pour mon besoin :
Private Sub CommandButton1_Click()
Dim x As Control
For Each x in Frame1.Controls 'Loop through the option buttons
'within the Frame
If x.Value = True Then
MsgBox x.Caption 'Display the name of the selected
End If 'option button
Next
End Sub
Avez vous des idées du pourquoi ca marche pas?
merci