Hi, i start ro learn VBA. This is my first project and i get stuck at input data through form to the next empty row. I try to fixed it with watch so many videos about it for 4 days, but i still can't fix it. So please kindly tell me, why i get this error and how to fix it. Thank you.
These are my vba codes.
n = Worksheets("ListItem").Range("TglOrderMasuk" & Rows.Count).End(xlUp).Row + 1
Worksheets("ListItem").Range("TglOrderMasuk" & n).Value = txbOrderMasuk.Value Worksheets("ListItem").Range("NamaBuyer" & n).Value = txbBuyer.Value Worksheets("ListItem").Range("KodePO" & n).Value = txbPO.Value Worksheets("ListItem").Range("NamaProduk" & n).Value = txbNamaBarang.Value Worksheets("ListItem").Range("JenisWig" & n).Value = txbJenisWig.Value Worksheets("ListItem").Range("QtyOrder" & n).Value = txbQOrder.Value