Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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) |