Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Is it possible run code when a cell is doubleclicked?
Is it possible run code when a cell is doubleclicked?
|
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Is it possible run code when a cell is doubleclicked?
See your other post in microsoft.excel.
-- Sandy In Perth, the ancient capital of Scotland and the crowning place of kings with @tiscali.co.uk "sumGirl" wrote in message oups.com... Is it possible run code when a cell is doubleclicked? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Is it possible run code when a cell is doubleclicked?
You can't call a macro from a cell with something like
=if(a11,domymacro) But you can trap event such as double clicking on a sheet using:- Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) msg = "You double clicked" MsgBox (msg) End Sub You could also use the sheet change event to detect the change of a particular cell and call a macro Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) If Not Application.Intersect(Target, Range("A1")) Is Nothing Then If Target.Value "" Then msg = "You changed A1" MsgBox (msg) End If End If End Sub Mike "sumGirl" wrote: Is it possible run code when a cell is doubleclicked? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell value not recognized by code. | Excel Discussion (Misc queries) | |||
How to Add Rows From Active Cell with in a XLL Code | Excel Worksheet Functions | |||
How can I rate a cell 1-5 and colour code it? | Excel Worksheet Functions | |||
How to refer to a cell format code? | Excel Discussion (Misc queries) | |||
Relative Cell References within VBA code | Excel Discussion (Misc queries) |