Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I am using the Sub shown below.
Question: How do I determine the address of the changed cell? Private Sub Worksheet_Change(ByVal Target As Range) Dim WatchRange As Range Dim IntersectRange As Range Set WatchRange = Range("E1:E31") Set IntersectRange = Intersect(Target, WatchRange) If IntersectRange Is Nothing Then 'MsgBox "Changes occured outside of range" Else 'MsgBox "You modified the selected range of cells" Application.Run "Test.xls!Time_Stamp" End If End Sub |
#2
![]() |
|||
|
|||
![]()
Hi Richard
maybe target.address Cheers JulieD "Richard" wrote in message ... I am using the Sub shown below. Question: How do I determine the address of the changed cell? Private Sub Worksheet_Change(ByVal Target As Range) Dim WatchRange As Range Dim IntersectRange As Range Set WatchRange = Range("E1:E31") Set IntersectRange = Intersect(Target, WatchRange) If IntersectRange Is Nothing Then 'MsgBox "Changes occured outside of range" Else 'MsgBox "You modified the selected range of cells" Application.Run "Test.xls!Time_Stamp" End If End Sub |
#3
![]() |
|||
|
|||
![]()
You can use
Target.Address Note that if multiple cells are selected, the *range* address is returned by Target, so you won't know which cell was changed unless you saved the previous values and compared them. In article , "Richard" wrote: Question: How do I determine the address of the changed cell? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
look up a value that results in a cell address | New Users to Excel | |||
Help Pls re macro cell address | Excel Discussion (Misc queries) | |||
How do I dynamically retrieve the cell address of the last cell t. | Excel Discussion (Misc queries) | |||
How do I get one cell to record the time another cell was changed. | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |