Hi
I use Sub Worksheet_SelectionChange(ByVal Target As Range)
currentcolumn = ActiveCell.Column
currentrow = ActiveCell.Row
...
to detect the current cell position.
However this Sub runs when it jumps to the new Cell.
I need to know the position for the Cell the cursor just left...
For example, I am in CELL A2 and I type "HELLO" then [ENTER] key.
The cursor automatically jumps to cell B2 and the Sub Worksheet_SelectionChange routine gives me cell position for B2 but I want to get the A2 position.
Can anyone help ?
thanks
I use Sub Worksheet_SelectionChange(ByVal Target As Range)
currentcolumn = ActiveCell.Column
currentrow = ActiveCell.Row
...
to detect the current cell position.
However this Sub runs when it jumps to the new Cell.
I need to know the position for the Cell the cursor just left...
For example, I am in CELL A2 and I type "HELLO" then [ENTER] key.
The cursor automatically jumps to cell B2 and the Sub Worksheet_SelectionChange routine gives me cell position for B2 but I want to get the A2 position.
Can anyone help ?
thanks