If(TypeName(<objet>) = "<nom de la classe>") Then <votre code> End If
Un truc de ce style devrait fonctionner :
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is CommandButton Then
ton code
End If
Next ctl
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf (TypeOf(ctrl) Is clsCbo) Then If (TypeOf ctrl Is clsCbo) Then If TypeOf(ctrl) Is clsCbo Then If TypeOf ctrl Is clsCbo Then
Compile error:
Expected: Variable