สอบถามการเขียนโค้ด
Posted: Sat Oct 18, 2014 2:41 pm
โค้ดที่เขียน ผิดพลาดอย่างไรครับ และจะแก้ไขได้อย่างไร
Private Sub Textbox1_AfterUpdate()
Sheets("SV0036").Select
If SV0036("B2").value = 0 Then
Textbox1.Backcolor = RGB (255,255,0)
Else
Textbox1.Backcolor = RGB (255,255,255)
End If
End Sub
Private Sub Textbox1_AfterUpdate()
Sheets("SV0036").Select
If SV0036("B2").value = 0 Then
Textbox1.Backcolor = RGB (255,255,0)
Else
Textbox1.Backcolor = RGB (255,255,255)
End If
End Sub