snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
End With
With entry_form
.name_txtbox.Value = Worksheets(db_sheet).Cells(data_row, name_col).Value
.surname_txtbox.Value = Worksheets(db_sheet).Cells(data_row, surname_col).Value
.sex_cbbox.Value = Worksheets(db_sheet).Cells(data_row, sex_col).Value
.id_txtbox.Value = Worksheets(db_sheet).Cells(data_row, id_col).Value
.ncar_txtbox.Value = Worksheets(db_sheet).Cells(data_row, ncar_col).Value
.lineway_cbbox.Value = Worksheets(db_sheet).Cells(data_row, lineway_col).Value
End With
End Sub
Public Sub search_mode2()
Dim name_search As String
Dim name_check As String
Dim name_row As Single
Dim n As Single