Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can I activate macros from cell by clicking it??
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
You could do this. Right click your sheet tab, view code and paste this in and then try selecting A1 Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$1" Then MyMacro End If End Sub Sub MyMacro() MsgBox "You Did it" End Sub Mike "artzuka" wrote: Can I activate macros from cell by clicking it?? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks, It works well...
"Mike H" kirjoitti: Hi, You could do this. Right click your sheet tab, view code and paste this in and then try selecting A1 Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$1" Then MyMacro End If End Sub Sub MyMacro() MsgBox "You Did it" End Sub Mike "artzuka" wrote: Can I activate macros from cell by clicking it?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
activate macro | Excel Discussion (Misc queries) | |||
button in a cell to activate a macro | Excel Worksheet Functions | |||
activate macro only in sheet2 | Excel Worksheet Functions | |||
activate a cell value through a macro | Excel Discussion (Misc queries) | |||
Ways to activate a macro | Excel Discussion (Misc queries) |