2 réponses
voila comment crer un label en VBA
Set label_dyna = Controls.Add("forms.label.1", "nom du label" & a, Visible = True) ' creation automatique du label nommé nom de label
label_dyna.top = 50 'label afficher à 50 pixel ds l a user form de hauteur
label_dyna.left = 200 ' label à afficher 200 pixels à gauche
label_dyna.caption = "la valeur voulu"
Set label_dyna = Controls.Add("forms.label.1", "nom du label" & a, Visible = True) ' creation automatique du label nommé nom de label
label_dyna.top = 50 'label afficher à 50 pixel ds l a user form de hauteur
label_dyna.left = 200 ' label à afficher 200 pixels à gauche
label_dyna.caption = "la valeur voulu"