Chao Cac Anh GPE
Hiện tại mượn code trên diễn dàn tập viết code
Viết được nút Them còn nút sữa thì cứ báo lỗi
Hiện tại mượn code trên diễn dàn tập viết code
Viết được nút Them còn nút sữa thì cứ báo lỗi
Mã:
Private Sub CommandButton1_Click()Dim curRow As Long
curRow = ListBox1.List(ListBox1.ListIndex, ListBox1.ColumnCount)
Sheets("Sheet1").Cells(curRow, 0) = TextBox11.Value
Sheets("Sheet1").Cells(curRow, 1) = TextBox12.Value
Sheets("Sheet1").Cells(curRow, 2) = TextBox13.Value
End Sub