Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find last updated cell 1

Status
Not open for further replies.

osx99

Technical User
Apr 9, 2003
250
GB
I have the following code which I want to trigger when changes are made to the range

However, I need to find the address of the cell or cells that have been updated. I.e the last updated active cells

ActiveCell.Row returns the wrong cell once <return> is pressed or mouse is clicked into another cell

Can anyone help?

Thanks,
Os

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("g100:i10000")) Is Nothing Then
'Type your Macro name here
MsgBox "ELR / Mileage Data change" & ActiveCell.Row
End If
End Sub
 
MsgBox "ELR / Mileage Data change" & Target.Row

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top