การทำ Auto Validation
Posted: Thu Feb 23, 2012 4:28 pm
อยากได้แบบว่าคลิ๊กที่เซลล์แล้วคีย์ตัวอักษรจากนั้นก็จะมีรายการที่เกี่ยวข้องแสดงขึ้นมาเลย
ไม่ทราบว่า พอจะแนะนำได้ไหมครับ หรือมีตัวอย่างไหนให้พอศึกษาได้บ้างครับ ขอบคุณครับ
ชุมชนความรู้ Excel และ Microsoft 365 สำหรับการทำงานจริง ตั้งแต่สูตร ฟังก์ชัน VBA, Power Query, PivotTable, Dashboard และ AI จนถึงการวิเคราะห์ข้อมูลและพัฒนาระบบงานในองค์กร
http://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