snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง & " - " & ธาตุอาหารรอง")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง & " - " & ธาตุอาหารรอง")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text And Sheet1.TextBox2.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text And Sheet1.TextBox1.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 = ("ธาตุอาหารรอง") And Sheet1.TextBox2.Text = ("ธาตุอาหารเสริม") Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง" & " - " & "ธาตุอาหารเสริม")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 = Sheet1.TextBox2.Text Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง & " - " & ธาตุอาหารรอง")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text And Sheet1.TextBox2.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text And Sheet1.TextBox1.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 = ("ธาตุอาหารรอง") And Sheet1.TextBox2.Text = ("ธาตุอาหารเสริม") Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง" & " - " & "ธาตุอาหารเสริม")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text And Sheet1.TextBox2.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text And Sheet1.TextBox1.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 <> "" And Sheet1.TextBox2.Text <> "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง" & " - " & "ธาตุอาหารเสริม")
End If
End Sub
Private Sub CommandButton1_Click()
If Sheet1.TextBox1.Text = Sheet1.TextBox1.Text And Sheet1.TextBox2.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง")
ElseIf Sheet1.TextBox2.Text = Sheet1.TextBox2.Text And Sheet1.TextBox1.Text = "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารเสริม")
ElseIf Sheet1.TextBox1 <> "" And Sheet1.TextBox2.Text <> "" Then
Sheet2.Label1.Caption = ("ธาตุอาหารรอง" & " - " & "ธาตุอาหารเสริม")
End If
End Sub