Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Brettjg wrote:
This must be really obvious but I cannot find this anywhere in HELP. I want to set up the worksheet so that if a cell is double clicked by the user then a particular macro will run automatically Hi Brettjg, Right click the sheet tab you want this behaviour, select View Code and copy & past this code: Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, "A1") Is Nothing Then Call MyMacro End Sub change A1 with your target cell or range and MyMacro with the name of your macro. -- Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual basic macro move cursor down 1 cell | Excel Worksheet Functions | |||
visual basic macro help | Excel Programming | |||
Can I run Visual Basic procedure using Excel Visual Basic editor? | Excel Programming | |||
Visual Basic Macro | Excel Discussion (Misc queries) | |||
This option(Trust access to visual basic project ) is not active . | Excel Programming |