Không nhất thiết là phải form bạn à, excel có những công cụ rất mạnh như filter, advandce filter , pivot table....
Bạn cho mình một sheet chứa cơ sở dữ liệu (ví dụ vài chục dòng) và 1 sheet ghi kết quả mong muốn rồi mới biết có giúp đc bạn hay không? chứ ko có file thế này khác gì đánh đố nhau
Private Sub cmdnhaplieu_Click()
Sheet4.[C8].Value = txt_cost.Value
Sheet4 [C9].Value = txt_tratruoc.Value
Sheet4 [C11].Value = txt_month.Value
End Sub
Private Sub cmdthoat_Click()
Unload Me
End Sub
Private Sub ComboBox1_Change()
With ComboBox1
If .Value <> "" Then
txtGopthang.Value...
Ko có file nên mình phang bừa vậy .
Mình đoán txtcost và tratruoc định dạng là number, còn month là date .
Tạo 1 button cmdnhaplieu và 1 button cmdtaomoi
sub cmdnhaplieu_click()
if txt_cost.value <>"" and txt_tratruoc.value <>"" and txt_month <>"" and isnumberic then
if...