I have this mismatch error occurring in the ActiveCell.Formula section that has been driving me crazy trying to figure out. It's the same one I use for all my various macro sheets but for osme reason this one is giving me problems. The cell is formatted as General and so is the data being pulled in. Am I missing something obvious? Thanks
VBA Code:
Dim LastRow As String
LastRow = Range("A" & Rows.Count).End(xlUp).Row
ActiveCell.FormulaR1C1 = _
Range("N2:N" & LastRow).Formula = "=IF(ISERROR(VLOOKUP(RC[-5],Codes!C[-13]:C[-12],2,FALSE)),"" "",VLOOKUP(RC[-5],Codes!C[-13]:C[-12],2,FALSE))"[/B][/COLOR]
Columns("N:N").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False