imimin
Active Member
- Joined
- May 9, 2006
- Messages
- 404
Greetings!
How would I properly syntax the following for the expression (formula) on line 1 (I now have it between the double quotes)? As it is, I am getting a 1004 error 'Application-defined or object-defined error'.
Thank you!
How would I properly syntax the following for the expression (formula) on line 1 (I now have it between the double quotes)? As it is, I am getting a 1004 error 'Application-defined or object-defined error'.
Code:
Range("C2").Value = "=IF(COUNTIF(Sheet2!$A$2:$A$10000,A2),VLOOKUP(A2,Sheet2!$A$2:$B$10000,2,FALSE),"")"
Range("C2").AutoFill Destination:=Range("C2:C" & Cells(Rows.Count, "A").End(xlUp).Row), Type:=xlFillSeries
Thank you!