Bonjour à tous,
Je débute dans le vba et j'ai ce petit souci.
je passe en paramétres un type label...mais j'ai comme erreur " type incompatible"...


lbl_nom est un label figurant sur ma user form

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
 
Private Sub CommandButton1_Click()
 
vis False, lbl_nom
 
 
End Sub
 
 
 
Sub vis(bool As Boolean, lbl As Label)
 
', ByVal lblb As Label)
 
lblb.Visible = bool
 
End Sub