Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Through a SheetSelectionChange event:
1) Create a Workbook_SheetSelectionChange macro in the code section of ThisWorkbook 2) Specify the cells that should trigger a macro Example (macro is triggered when you select A3): Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If Target.Address(0, 0) = "A3" Then MsgBox "Hi, I'm cell " & Target.Address End If End Sub Cheers, Joerg "Corey" wrote in message ... If i select a Cell, how can i run a macro, rather than having a button? Regards Corey |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Running a macro from currently selected cell? | Excel Discussion (Misc queries) | |||
Running macro from currently selected cell? | Excel Discussion (Misc queries) | |||
Macro to transfer contents of 'Selected' cell to alternate cell. | Excel Worksheet Functions | |||
run macro when cell is selected | Excel Worksheet Functions | |||
Macro to take selected cells times a selected cell | Excel Programming |