การทำ Auto Validation
Posted: Thu Feb 23, 2012 4:28 pm
อยากได้แบบว่าคลิ๊กที่เซลล์แล้วคีย์ตัวอักษรจากนั้นก็จะมีรายการที่เกี่ยวข้องแสดงขึ้นมาเลย
ไม่ทราบว่า พอจะแนะนำได้ไหมครับ หรือมีตัวอย่างไหนให้พอศึกษาได้บ้างครับ ขอบคุณครับ
คลังคำตอบแห่งความรู้จากคนไทย เพื่อโลกที่ต้องการเข้าใจในสิ่งเล็ก ๆ อย่างลึกซึ้ง
https://snasui.com/
Code: Select all
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$4" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
If Target.Address = "$B$5" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
If Target.Address = "$B$6" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
If Target.Address = "$B$7" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
If Target.Address = "$B$8" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
If Target.Address = "$B$9" Then
Range("G1") = Target
Target.Select
Application.SendKeys "%{DOWN}"
End If
End Sub