Dear All
I am trying to Intersect method but it fails gives run-time error '1004'.
Method 'Intersect of object' - Global failed.
Ranged names are different worksheet Sheets(B) and Activesheet Sheets ("A") . Not sure why it is not working.
Your help would be greatly appreciated
Biz
I am trying to Intersect method but it fails gives run-time error '1004'.
Method 'Intersect of object' - Global failed.
Ranged names are different worksheet Sheets(B) and Activesheet Sheets ("A") . Not sure why it is not working.
Code:
Set tAG = Sheets("B").Range("tAGt")
Set tAT = Sheets("B").Range("tATt")
'AG Changes
If Not Intersect(Range("E12"), tAG) Is Nothing Then
Range("E14").Value = ""
Range("E16").Value = ""
'AT Changes
ElseIf Not Intersect(Range("E14"), tAT) Is Nothing Then
Range("E16").Value = ""
End If
Your help would be greatly appreciated
Biz