ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   double click macros (https://www.excelbanter.com/excel-programming/398134-re-double-click-macros.html)

Alok[_3_]

double click macros
 
Hi Jack,
You can just use code like this..

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel
As Boolean)
If Not Intersect(Target, Range("ABC")) Is Null Then
'do something here
ElseIf Not Intersect(Target, Range("DEF")) Is Null Then
'do something else here
End If
End Sub

Alok



All times are GMT +1. The time now is 03:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com