snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address = Range("C13").Address Then
If Range("C13").Value = "" Then
UserForm1.Show
Cancel = True
End If
End If
If Target.Address = Range("C14").Address Then
If Range("C14").Value = "" Then
UserForm1.Show
Cancel = True
End If
End If
If Target.Address = Range("C15").Address Then
If Range("C15").Value = "" Then
UserForm1.Show
Cancel = True
End If
End If
End Sub
ขอบคุณครับ
You do not have the required permissions to view the files attached to this post.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Me.Range("c13:c44")) Is Nothing Then
' If Target.Address = Range("C13").Address Then
If Target.Value = "" Then
UserForm1.Show
Cancel = True
End If
End If
' If Target.Address = Range("C14").Address Then
' If Range("C14").Value = "" Then
' UserForm1.Show
' Cancel = True
' End If
' End If
' If Target.Address = Range("C15").Address Then
' If Range("C15").Value = "" Then
' UserForm1.Show
' Cancel = True
' End If
' End If
End Sub