Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to create a form for our company that will cause a calendar
macro to automatically run when ever the appropriate cell(s) are activated by tabbing or mouse click? I already have the calender macro. Just need to run it when the cell activates. Any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put this macro in the worksheet code module of the sheet
with the magic cell on it. Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = Range("B5").Address Then popUp End If End Sub Put this macro in the standard Module1. Sub popUp() MsgBox "It works" End Sub When you select cell B5 the macro in the standard module will run and display the message box. You can adapt this to suit your needs. "elisart" wrote: I would like to create a form for our company that will cause a calendar macro to automatically run when ever the appropriate cell(s) are activated by tabbing or mouse click? I already have the calender macro. Just need to run it when the cell activates. Any ideas? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Beautiful! Thanks.
"JLGWhiz" wrote: Put this macro in the worksheet code module of the sheet with the magic cell on it. Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = Range("B5").Address Then popUp End If End Sub Put this macro in the standard Module1. Sub popUp() MsgBox "It works" End Sub When you select cell B5 the macro in the standard module will run and display the message box. You can adapt this to suit your needs. "elisart" wrote: I would like to create a form for our company that will cause a calendar macro to automatically run when ever the appropriate cell(s) are activated by tabbing or mouse click? I already have the calender macro. Just need to run it when the cell activates. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign Cell "B5" Value to Macro (activation function) | Excel Programming | |||
Macro Activation | Excel Programming | |||
macro activation | Excel Programming | |||
Automatic Tabbing? | Excel Worksheet Functions | |||
Automatic Activation of Design Mode | Excel Programming |