Evagrius Ponticus
Well-known Member
- Joined
- May 24, 2007
- Messages
- 1,467
Hi All,
I am not sure why this isn't working. When I step through the target and the range "Ratio" are equal but the code skips the line that selects the sheet. Thank you for any help.
I am not sure why this isn't working. When I step through the target and the range "Ratio" are equal but the code skips the line that selects the sheet. Thank you for any help.
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("MyRange")) Is Nothing Then
Select Case Target
Case Target.Address = Range("Ratio").Address
Sheet1.Select
End Select
End If
End Sub