Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi
Can I launch a macro simply by clicking a cell ? What command would I need to type in the cell ? Please help if you can. Thankyou Cedric |
#2
![]() |
|||
|
|||
![]()
You can use this event in the sheet module for Cell A1
It will also run if you select the cell with the arrow keys Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Application.Intersect(Range("A1"), Target) Is Nothing Then yourmacro End If End Sub Sub yourmacro() MsgBox "Hi" End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Cedric Dennis" wrote in message om... Hi Can I launch a macro simply by clicking a cell ? What command would I need to type in the cell ? Please help if you can. Thankyou Cedric |
#3
![]() |
|||
|
|||
![]()
right click sheet tabview codeinsert thissave to suitSAVE
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$C$1" Then doit End Sub Sub doit() MsgBox "Hi" End Sub -- Don Guillett SalesAid Software "Cedric Dennis" wrote in message om... Hi Can I launch a macro simply by clicking a cell ? What command would I need to type in the cell ? Please help if you can. Thankyou Cedric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
In excel, I seem to be "locked" on a cell and unable to click off. | Excel Discussion (Misc queries) | |||
macro relative referencing | Excel Discussion (Misc queries) | |||
enter data in cell then run macro automatically | Excel Discussion (Misc queries) | |||
Undoing LINKS in Excel 2000 | New Users to Excel | |||
IN EXCEL, WHEN I CLICK ONA SINGLE CELL It HIGHLIGHTS WHOLE Page | Excel Discussion (Misc queries) |