Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet_change event function that behaves differently based on a
value typed into a cell verses pasted into a cell. If I paste in a value the activecell doesn't change. If I type a value and hit enter the activecell moves down one row. How can I set the activecell to be the one I just moved from? thanks LJB |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
One brutal way is Private Sub Worksheet_Change(ByVal Target As Range) 'whetever here, and finally: Target.Select End Sub But whether the cursor moves on Enter or not is really the choice of each user, defined in the Tools Options Edit Move cursor after entry. And user preferences should in my opinion be overridden only when absolutely necessary ... that is when the users are idiots .... which is almost always ...<bg -- HTH. Best wishes Harald Followup to newsgroup only please. "ljb" <. wrote in message ... I have a worksheet_change event function that behaves differently based on a value typed into a cell verses pasted into a cell. If I paste in a value the activecell doesn't change. If I type a value and hit enter the activecell moves down one row. How can I set the activecell to be the one I just moved from? thanks LJB |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, got me going again.
Looking at help I find it suggests using Target.Activate if its a single cell over Target.Select. Both seem to work for me. thanks LJB |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ActiveCell.FormulaR1C1 | Excel Discussion (Misc queries) | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
ActiveCell or ActiveSheet | Excel Worksheet Functions | |||
ActiveCell in a Range? | Excel Discussion (Misc queries) | |||
Activecell problem | Excel Discussion (Misc queries) |