Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using a Worksheet_event according to instructions from another thread to
place a formula next to a user changed cell. If Not Intersect(Target, Me.Range("B3:B65536")) Is Nothing Then ... I wanted to change the above formula to use the current last row instead of 65536. Although the statement below is correct in calculating the last row, using End(xlUp) obviously messes things up and "Target" changes, resulting in erroneous results. If Not Intersect(Target, Me.Range("B3:B" & (Cells(Rows.Count, "B").End(xlUp).Row))) Is Nothing Then ... Is it possible to fix this situation? My best solution would be not to process up to the last worksheet row but only column "B" of range "MyRange". Any cells outside "MyRange" should be processed by other code, if at all. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
intersect named range in different workbook | Excel Discussion (Misc queries) | |||
Combine Intersect Range in If statements | Excel Discussion (Misc queries) | |||
Check if a range is a sebset of another range | Excel Programming | |||
Is there a "Non-Intersect" VBA method to remove a sub-range from a range? | Excel Programming | |||
Help with If Not Intersect | Excel Programming |