matran25251325
Thành viên tiêu biểu

- Tham gia
- 13/1/11
- Bài viết
- 424
- Được thích
- 39
Option Explicit
Private Sub CommandButton1_Click()
UserForm1.Show
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Range("A8:A65536"), Target) Is Nothing Then
UserForm1.Show: Cancel = True
End If
End Sub
Các anh cho em hỏi theo code trên thì thủ tục click chuột trái 2 lần thì sẽ gọi form, Vậy nếu giờ em muốn khi nhấp Enter thì sẽ gọi form. Vậy em phải thay đổi chỗ BeforeDoubleClick bằng gì?
Private Sub CommandButton1_Click()
UserForm1.Show
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Range("A8:A65536"), Target) Is Nothing Then
UserForm1.Show: Cancel = True
End If
End Sub
Các anh cho em hỏi theo code trên thì thủ tục click chuột trái 2 lần thì sẽ gọi form, Vậy nếu giờ em muốn khi nhấp Enter thì sẽ gọi form. Vậy em phải thay đổi chỗ BeforeDoubleClick bằng gì?