ต้องการ code Vba เมื่อค่าในเวลเปลี่ยน ให้ไปทำกับเหตุการณ์หนุึ่ง
Posted: Thu Sep 25, 2025 4:24 pm
ต้องการ code Vba เมื่อค่าในเวลเปลี่ยน ให้ไปทำกับเหตุการณ์หนุึ่ง
คลังคำตอบแห่งความรู้จากคนไทย เพื่อโลกที่ต้องการเข้าใจในสิ่งเล็ก ๆ อย่างลึกซึ้ง
https://www.snasui.com/
Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
Range("C5:F5").ClearContents
End Sub
Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "C2" Then
With Me
.Range("c5:f5").ClearContents
End With
End If
End Sub