I have this line of code in my macro and it continues to cause the error of method Range of object '_Global' failed.
im simply wondering if it has anything to do with my use of AND. This may sound stupid but ive never used AND in this way before so just wanted to double check.
Thanks in advance
Chris
If Range("B" & CStr(StockSearch)).Value = Range("A" & CStr(CopiedParts)) And Range("C" & CStr(StockSearch)).Value = Range("B" & CStr(CopiedParts)) And Range("D" & CStr(StockSearch)) = Range("C" & CStr(CopiedParts)) Then
im simply wondering if it has anything to do with my use of AND. This may sound stupid but ive never used AND in this way before so just wanted to double check.
Thanks in advance
Chris
If Range("B" & CStr(StockSearch)).Value = Range("A" & CStr(CopiedParts)) And Range("C" & CStr(StockSearch)).Value = Range("B" & CStr(CopiedParts)) And Range("D" & CStr(StockSearch)) = Range("C" & CStr(CopiedParts)) Then