snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
Private Sub CommandButton1_Click()
Dim r As Long
With Sheets("fdata")
r = .Range("a" & Rows.Count).End(xlUp).Row + 1
If Len(TextBox3.Text) = 9 Then
.Cells(r, 1) = Format(TextBox1.Value, "dd/mm/yyyy")
.Cells(r, 2) = TextBox2.Text
.Cells(r, 3) = TextBox3.Text
MsgBox "ºÑ¹·Ö¡¢éÍÁÙÅáÅéÇ"
Else
MsgBox "Serial äÁè¶Ù¡µéͧ ¡ÃسҡÃÍ¡ãËÁè"
End If
End With
End Sub
You do not have the required permissions to view the files attached to this post.