ผู้รู้ทุกท่านและเพื่อน ๆ พี่ ๆ ทุกท่าน และอาจารย์ ช่วยแนะนำหน่อยครับ
1. ผมอยาก Lock Cell ใน sheet หน่อยนะครับคือ
ผมต้องทำอย่างไรครับ...?
2. ผมอยาก ดับเบิ้ลคลิก ช่องแถวนี้น่ะครับ
ต้องใช้ Code อย่างไรน่ะครับ
ผมลองศึกษา Code ชุดนี้ดูแล้วครับ งงเลย ไปไม่ถูกครับ
Code นี้ได้มาจากที่นี้หล่ะครับ แต่หากระทู้ไม่เจอครับ
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$C$4"
Call addNewItem(Target.Value)
Range("C4").Select
'reset qty after add item
If Range("E4").Value > 1 Then Range("E4").Value = 1
Case "$E$4"
If Target.Value < 1 Then Target.Value = 1
Case Else:
If Left(Target.Address, 3) = "$C$" Then
If Target.Row >= 8 And Target.Row <= 47 Then
If IsEmpty(Target.Value) Then
Range("E" & Target.Row).ClearContents
End If
End If
End If
'Debug.Print "x " & Target.Address
End Select
End Sub
ช่วยแนะนำหน่อยครับ ความรู้ ทางด้าน VBA และอื่น ฯลฯ.
ผิดพลาดประการใด ขออภัยไว้ ณ ที่นี้ด้วยครับ
ขอบคุณครับทุกท่านครับ
You do not have the required permissions to view the files attached to this post.