What cell caused the worksheet change event
Ignore my post I thought you were asking about the SheetSelectionChange
event.
bobbo wrote:
you can set the last range to a static value
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal
Target As Range)
Static OldRange As Range
dim i as integer
dim j as integer
if not OldRange is nothing then
i = OldRange.row
j = OldRange.column
end if
set OldRange = Target
End Sub
Keith wrote:
I want to run a routine on my worksheet when the change event happens. This
event requires me to know the row and column of the cell that was changed,
but if the user pressed return to complete the entry them the cursor moved
down the the next row and if they press the Tab key it moves to the next
column.
Is there any way to find out which cell was changed?
|