Hi,
I have VB written that acts upon a double click preformed on a cell.
This works great. The question I have; is it possible to also act if an enter key is press on the same cell?
My code in the worksheet vb:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'-------------------------------------------------------
'Hardware Master - Do on Double Click
'-------------------------------------------------------
Set theRange = Range("L4:L" & 4)
If Not Intersect(Target, theRange) Is Nothing Then
SheetName = Me.Name
UserForm1.Show
Endif
End Sub
I have VB written that acts upon a double click preformed on a cell.
This works great. The question I have; is it possible to also act if an enter key is press on the same cell?
My code in the worksheet vb:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'-------------------------------------------------------
'Hardware Master - Do on Double Click
'-------------------------------------------------------
Set theRange = Range("L4:L" & 4)
If Not Intersect(Target, theRange) Is Nothing Then
SheetName = Me.Name
UserForm1.Show
Endif
End Sub