این هم کدیه که نوشته شده :
num = Application.WorksheetFunction.CountA(Range("a:a")) + 1
If TextBox2.Text <> Empty Then
Sheets("sheet1").Cells(num, 2).Value = TextBox2.Value
TextBox3.Value = Sheets("sheet1").Cells(num, 3).Value
Else
MsgBox "کدکالا را مشخص نمایید "
End If
TextBox1.SetFocus
End Sub



کامنت