Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

afficher une variable vb dans un userform

1 réponse
Avatar
nol
j'ai commis un petit prog de compta et je souhaite afficher dans un userform
une variable qui est selectionnée dans un autre userform.

1 réponse

Avatar
Jacques93
Bonjour nol,

Peut être quelque chose du genre :

Dans UserForm1 :

Private Sub CommandButton1_Click()
UserForm2.Show vbModal
Me.Label1.Caption = UserForm2.MaVariable
Unload UserForm2
End Sub

Dans UserForm2 :

Public MaVariable As String

Private Sub CommandButton1_Click()
MaVariable = "Hello"
Me.Hide
End Sub

j'ai commis un petit prog de compta et je souhaite afficher dans un userform
une variable qui est selectionnée dans un autre userform.





--
Cordialement,

Jacques.