Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm experimenting with the intersect method...
I need to locate two values, assign them to variables and then select the intersection between the two. I'm trying the following: Sub IntersectTest() Dim colRng, uclRng Dim isect As Range colRng = ActiveSheet.Cells.Find("DC_RES") uclRng = ActiveSheet.Cells.Find("UCL") Set isect = Application.Intersect(Range(colRng).EntireColumn, (Range(uclRng).EntireRow)) If isect Is Nothing Then MsgBox "Ranges do not intersect" Else isect.Select End If End Sub At the Set isect =... line I get: Run time error : '1004' Method 'Range' of 'object' Global Failed Help! I've rewritten this as many ways as I can, to no avail. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Intersect Method | Excel Programming | |||
Error 424 with inputbox method after OK | Excel Programming | |||
Method 'Intersect' of object '_Global' failed | Excel Programming | |||
Exception when uisng Intersect method | Excel Programming | |||
Is there a "Non-Intersect" VBA method to remove a sub-range from a range? | Excel Programming |