snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
strvaluemsg = MsgBox("กรุณาระบุผลลัพธ์ของท่านในขั้นตอนนี้", vbOKOnly + 64, "กรุณาอ่าน ")
Else: strvaluemsg = MsgBox("ข้อมูลของท่านได้บันทึกแล้ว ไปข้อที่ 1.2")
Application.Goto reference:="ques1.2"
End If
End Sub
Private Sub CommandButton2_Click()
MsgBox ("กรุณากรอกขั้นตอนนี้ อีกครั้ง ขอบคุณ")
End Sub
You do not have the required permissions to view the files attached to this post.
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
MsgBox "กรุณาระบุผลลัพธ์ของท่านในขั้นตอนนี้", vbOKOnly + 64, "กรุณาอ่าน "
Exit Sub
End If
If Sheets("แบบสอบถาม").OptionButtons("Option Button 81").Value = 1 Then
MsgBox "กรุณาอ่าน"
Exit Sub
End If
MsgBox ("ข้อมูลของท่านได้บันทึกแล้ว ไปข้อที่ 1.2")
Application.Goto reference:="ques1.2"
End Sub
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
strvaluemsg = MsgBox("กรุณาระบุผลลัพธ์ของท่านในขั้นตอนนี้", vbOKOnly + 64, "กรุณาอ่าน ")
Else: strvaluemsg = MsgBox("ข้อมูลของท่านได้บันทึกแล้ว ไปข้อที่ 1.2")
With Worksheets("บันทึกข้อมูล")
If .Range("a9") = "" Then
.Range("a9") = TextBox1.Value
Else
.Range("a" & Rows.Count).End(xlUp).Offset(10, 0) = TextBox1.Value
End With
Application.Goto reference:="ques1.2"
End If
End Sub
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
strvaluemsg = MsgBox("กรุณาระบุผลลัพธ์ของท่านในขั้นตอนนี้", vbOKOnly + 64, "กรุณาอ่าน ")
Else: strvaluemsg = MsgBox("ข้อมูลของท่านได้บันทึกแล้ว ไปข้อที่ 1.2")
With Worksheets("บันทึกข้อมูล")
If .Range("a9") = "" Then
.Range("a9") = TextBox1.Value
Else
.Range("a" & Rows.Count).End(xlUp).Offset(10, 0) = TextBox1.Value
End With
Application.Goto reference:="ques1.2"
End If
End Sub
If TextBox1.Value = "" Then
strvaluemsg = MsgBox("ทดสอบ", vbOKOnly + 64, "อ่าน")
Else: strvaluemsg = MsgBox("ไปข้อ 1.2")
With Worksheets("บันทึกข้อมูล")
If .Range("a9") = "" Then
.Range("a9") = TextBox1.Value
Else
.Range("b" & Rows.Count).End(xlUp).Offset(10, 0) = TextBox1.Value
.Range("d" & Rows.Count).End(xlUp).Offset(3, 0) = TextBox1.Value
.Range("c" & Rows.Count).End(xlUp).Offset(5, 0) = TextBox1.Value
End If
Application.Goto reference:="ques1.2"
End With
End If
ขอบคุณ อาจารย์ครับ
You do not have the required permissions to view the files attached to this post.
If OptionButtons("Option Button 9").Value = True Then
Sheets("บันทึกข้อมูล").Range("a13") = 1
End If
If OptionButtons("Option Button 10").Value = True Then
Sheets("บันทึกข้อมูล").Range("a13") = 2
End If
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
strvaluemsg = MsgBox("อ่าน, vbOKOnly + 64, "อ่าน")
Else: strvaluemsg = MsgBox("ไปข้อ 1.2")
End If
If OptionButtons("Option Button 9").Value = True Then
Sheets("บันทึกข้อมูล").Range("a13") = 1
End If
If OptionButtons("Option Button 10").Value = True Then
Sheets("บันทึกข้อมูล").Range("a13") = 2
End If
Application.Goto reference:="r18c3"
End Sub