Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tested in Excel 2003 fr, Excel 2007 fr, Excel 2010 beta en.
When you enter any character in a cell, the Worksheet_SelectionChange event macro is fired (the target cell is still the active cell, no move after entry). Anyone heard of it ? TIA Daniel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
code NOT restricted?
As ALWAYS, post your code for comments. -- Don Guillett Microsoft MVP Excel SalesAid Software "Daniel.C" wrote in message ... Tested in Excel 2003 fr, Excel 2007 fr, Excel 2010 beta en. When you enter any character in a cell, the Worksheet_SelectionChange event macro is fired (the target cell is still the active cell, no move after entry). Anyone heard of it ? TIA Daniel |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just add the following macro to a sheet in a blank workbook :
Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox "Selection change " & Target.Address End Sub code NOT restricted? As ALWAYS, post your code for comments. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That is normal. When you go into edit mode, then press Enter, the old active
cell is re-selected. If you programmatically change the value of a cell (even re-apply the same value) only the 'Change' event will fire. (There are one or two other programmatic actions which will trigger the SelectionChange without doing anything at all to cells) Regards, Peter T "Daniel.C" wrote in message ... Tested in Excel 2003 fr, Excel 2007 fr, Excel 2010 beta en. When you enter any character in a cell, the Worksheet_SelectionChange event macro is fired (the target cell is still the active cell, no move after entry). Anyone heard of it ? TIA Daniel |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks. Good to know anyway, even if I can't think that it's normal.
Daniel That is normal. When you go into edit mode, then press Enter, the old active cell is re-selected. If you programmatically change the value of a cell (even re-apply the same value) only the 'Change' event will fire. (There are one or two other programmatic actions which will trigger the SelectionChange without doing anything at all to cells) Regards, Peter T "Daniel.C" wrote in message ... Tested in Excel 2003 fr, Excel 2007 fr, Excel 2010 beta en. When you enter any character in a cell, the Worksheet_SelectionChange event macro is fired (the target cell is still the active cell, no move after entry). Anyone heard of it ? TIA Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
BeforeUpdate Event triggers twice | Excel Programming | |||
Worksheet_selectionchange Event | Excel Programming | |||
Event Triggers | Excel Programming | |||
worksheet_SelectionChange Event | Excel Programming | |||
Click event on cell triggers a macro | Excel Programming |