Hi All!
I am trying to put this worksheet function =IFERROR(VLOOKUP(SUBSTITUTE(E2,"/","-"),Master!$E:$E,1,FALSE),VLOOKUP(E2*1,Master!$E:$E,1,FALSE))
Into some VBA code that just drops the formula into a cell and copies it down the length of the data set. For some reason it is throwing me a 'type mismatch' error.
This is the code I am trying to drop the formula into:
Range("J1").Select ActiveCell.FormulaR1C1 = "Name"
Range("J2").Select
ActiveCell = "=IFERROR(VLOOKUP(SUBSTITUTE(E2,"/","),Master!$E:$E,1,FALSE),
VLOOKUP(E2*1,Master!$E:$E,1,FALSE))"
Selection.AutoFill Destination:=Range(Cells(2, 10), Cells(LastRowOAQ, 10)), Type:=xlFillDefault
Any ideas would be a huge help!
Thanks
I am trying to put this worksheet function =IFERROR(VLOOKUP(SUBSTITUTE(E2,"/","-"),Master!$E:$E,1,FALSE),VLOOKUP(E2*1,Master!$E:$E,1,FALSE))
Into some VBA code that just drops the formula into a cell and copies it down the length of the data set. For some reason it is throwing me a 'type mismatch' error.
This is the code I am trying to drop the formula into:
Range("J1").Select ActiveCell.FormulaR1C1 = "Name"
Range("J2").Select
ActiveCell = "=IFERROR(VLOOKUP(SUBSTITUTE(E2,"/","),Master!$E:$E,1,FALSE),
VLOOKUP(E2*1,Master!$E:$E,1,FALSE))"
Selection.AutoFill Destination:=Range(Cells(2, 10), Cells(LastRowOAQ, 10)), Type:=xlFillDefault
Any ideas would be a huge help!
Thanks