ต้องการ code Vba เมื่อค่าในเวลเปลี่ยน ให้ไปทำกับเหตุการณ์หนุึ่ง
Posted: Thu Sep 25, 2025 4:24 pm
ต้องการ code Vba เมื่อค่าในเวลเปลี่ยน ให้ไปทำกับเหตุการณ์หนุึ่ง
ชุมชนความรู้ Excel และ Microsoft 365 สำหรับการทำงานจริง ตั้งแต่สูตร ฟังก์ชัน VBA, Power Query, PivotTable, Dashboard และ AI จนถึงการวิเคราะห์ข้อมูลและพัฒนาระบบงานในองค์กร
https://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