Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello. Is there a way to essentially do a cell activate event? WhatI'm
trying to do is have a Sub fire if and when a user clicks on any cell within column F. So for instance, if the user clicks on F5, then Sub Run_Main executes. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 6 Then With Target 'do your stuff End With End If End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips "Steph" wrote in message ... Hello. Is there a way to essentially do a cell activate event? WhatI'm trying to do is have a Sub fire if and when a user clicks on any cell within column F. So for instance, if the user clicks on F5, then Sub Run_Main executes. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wow, I always thought the worksheet_selectionchange event was triggered when
something was entered in the cell (like a doubleclick, or simply typing something in the cell and hitting enter), not as soon as it was activated. Learn something new everyday...Thanks Bob! "Bob Phillips" wrote in message ... Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Column = 6 Then With Target 'do your stuff End With End If End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips "Steph" wrote in message ... Hello. Is there a way to essentially do a cell activate event? WhatI'm trying to do is have a Sub fire if and when a user clicks on any cell within column F. So for instance, if the user clicks on F5, then Sub Run_Main executes. Thanks! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steph,
You might like to look at Chip Pearson's page on Event Procedures at: http://www.cpearson.com/excel/events.htm --- Regards, Norman "Steph" wrote in message ... Wow, I always thought the worksheet_selectionchange event was triggered when something was entered in the cell (like a doubleclick, or simply typing something in the cell and hitting enter), not as soon as it was activated. Learn something new everyday...Thanks Bob! "Bob Phillips" wrote in message ... Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Column = 6 Then With Target 'do your stuff End With End If End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips "Steph" wrote in message ... Hello. Is there a way to essentially do a cell activate event? WhatI'm trying to do is have a Sub fire if and when a user clicks on any cell within column F. So for instance, if the user clicks on F5, then Sub Run_Main executes. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pasting after Workbook Activate event | Excel Programming | |||
Worksheet Activate Event | Excel Programming | |||
Userform activate event question | Excel Programming | |||
Activate sheet event | Excel Programming | |||
Activate event | Excel Programming |