1. Enter an Excel worksheet ; To Define Name > "TagNumber" > ReferTo :=
D2.
2. Intention ; After TagNumber is updated (in a Change Event), the
focus would move to the adjacent cell to the right, Offset(0,1).
3. And therefore, the event procedure is devised as follows ;-
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Address = Range("TagNumber").Address Then
Range("TagNumber").Offset(0, 1).Activate
End If
End Sub
4. However, at run-time ; As soon as Tagnumber is activated, the focus
shifts to the adjacent cell to the right already. And therefore, in
that nick of time, TagNumber is not updated at all. No chance, you
know.
5. Please share your comment. Regards.
Bookmarks