Lone-wolf
XLDnaute Barbatruc
Rebonjour le Forum,
Suite à mon précédent post concernant les formes et codes-barres. J'ai modifié à nouveau le classeur en y mettant des TextBox's.
Post > modifier-le-texte-des-shapes-apres-selection-dans-liste-deroulante
Je n'arrive pas à coder en ajoutant une variable sur " Sheets("Codes-Barres").tb1.Text "
img = Sheets("Codes-Barres").tb1.Text
Par ex.:
For x = 1 To 16
img = [K2]
Next x
Un petit coup de main s.v.p. 😱
A+ 😎
Suite à mon précédent post concernant les formes et codes-barres. J'ai modifié à nouveau le classeur en y mettant des TextBox's.
Post > modifier-le-texte-des-shapes-apres-selection-dans-liste-deroulante
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Sheets("Codes-Barres").tb1.Text = [K2]
Sheets("Codes-Barres").tb2.Text = [K2]
Sheets("Codes-Barres").tb3.Text = [K2]
Sheets("Codes-Barres").tb4.Text = [K2]
Sheets("Codes-Barres").tb5.Text = [K2]
Sheets("Codes-Barres").tb6.Text = [K2]
Sheets("Codes-Barres").tb7.Text = [K2]
Sheets("Codes-Barres").tb8.Text = [K2]
Sheets("Codes-Barres").tb9.Text = [K2]
Sheets("Codes-Barres").tb10.Text = [K2]
Sheets("Codes-Barres").tb11.Text = [K2]
Sheets("Codes-Barres").tb12.Text = [K2]
Sheets("Codes-Barres").tb13.Text = [K2]
Sheets("Codes-Barres").tb14.Text = [K2]
Sheets("Codes-Barres").tb15.Text = [K2]
Sheets("Codes-Barres").tb16.Text = [K2]
Sheets("Codes-Barres").tb17.Text = [K3]
Sheets("Codes-Barres").tb18.Text = [K3]
Sheets("Codes-Barres").tb19.Text = [K3]
Sheets("Codes-Barres").tb20.Text = [K3]
Sheets("Codes-Barres").tb21.Text = [K3]
Sheets("Codes-Barres").tb22.Text = [K3]
Sheets("Codes-Barres").tb23.Text = [K3]
Sheets("Codes-Barres").tb24.Text = [K3]
Sheets("Codes-Barres").tb25.Text = [K3]
Sheets("Codes-Barres").tb26.Text = [K3]
Sheets("Codes-Barres").tb27.Text = [K3]
Sheets("Codes-Barres").tb28.Text = [K3]
Sheets("Codes-Barres").tb29.Text = [K3]
Sheets("Codes-Barres").tb30.Text = [K3]
Sheets("Codes-Barres").tb31.Text = [K3]
Sheets("Codes-Barres").tb32.Text = [K3]
End Sub
Je n'arrive pas à coder en ajoutant une variable sur " Sheets("Codes-Barres").tb1.Text "
img = Sheets("Codes-Barres").tb1.Text
Par ex.:
For x = 1 To 16
img = [K2]
Next x
Un petit coup de main s.v.p. 😱
A+ 😎
Pièces jointes
Dernière édition: