ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Validate Data in VBA "How to get lost focus cell address" (https://www.excelbanter.com/excel-programming/322148-validate-data-vba-how-get-lost-focus-cell-address.html)

HotRod

Validate Data in VBA "How to get lost focus cell address"
 
I'm firing an "Worksheet_Change" event in my excel worksheet but I want to
know how I can trap the cell or row that lost the focus if I change the data
in cell C5 and then hit TAB I get D5 as the active cell. the "Target" only
returns the value of that cell but how can I get the address?



HotRod

Validate Data in VBA "How to get lost focus cell address"
 
Target.Cells.Address



Tom Ogilvy

Validate Data in VBA "How to get lost focus cell address"
 
Target.Address

--
Regards,
Tom Ogilvy

"HotRod" wrote in message
...
Target.Cells.Address






All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com