Set Obj = Form_Conso.Controls.Add("forms.Label.1")
With Obj
.Name = "Stock" & k
.Object.Caption = Cells(i + k - 1, 19)
.Left = 1014
.Top = 130 + (k - 1) * 14
.Width = 90
.Height = 12
.BackColor = Back
.Font.Name = "Tahoma"
.Font.Size = 10
.Font.Bold = True
.ForeColor = RGB(255, 0, 0)
End With
Set Obj = Form_Conso.Controls.Add("forms.checkbox.1")
With Obj
.Name = "CB_" & k
.Left = 1110
.Top = 130 + (k - 1) * 14
.Width = 12
.Height = 12
End With
Next k
Set Obj = Form_Conso.Controls.Add("forms.Label.1")
With Obj
.Name = "Calcul"
.Object.Caption = 0
.Left = 1014
.Top = 124 + (k) * 14
.Width = 90
.Height = 18
.BackColor = Back
.Font.Name = "Tahoma"
.Font.Size = 14
.Font.Bold = True
.ForeColor = RGB(255, 0, 0)
End With
Form_Conso.Show