Dear Anh/Chị,
Em có một vấn đề trong file đính kèm nhờ các Anh/Chị chỉ giúp giùm.
Xin chân thành cảm ơn.
Private Sub ListBox1_Click() Dim lPos As Long
With UserForm1
lPos = .ListBox1.ListIndex
.ComboBox1.Value = .ListBox1.List(lPos, 0)
.TextBox1.Value = .ListBox1.List(lPos, 2)
End With
End Sub
Private Sub CommandButton1_Click() Dim wSh As Worksheet
Dim sDesSh As String
sDesSh = UserForm1.ComboBox1.Value
For Each wSh In ThisWorkbook.Worksheets
If wSh.Name = sDesSh Then
wSh.Range("D4") = UserForm1.TextBox1.Value
' Muon Print cai gi, o dau thi cho code vao day
End If
Next wSh
End Sub