The cell is not filled with the formula, but a "FALSE" is written in there. Any ideas how to change that, so that the formula is displayed correctly? No error message though..
'code
q = 1
Do Until q = 10
q = q + 1
If Cells(q, 4).HasFormula Then
Else
If IsEmpty(Cells(q, 4)) Then
Cells(q, 4).Formula = Cells(q, 4).Formula = "=IFERROR(VLOOKUP(E" & q & ",Lagerplätze!A:B,2,FALSE),)"
End If
End If
Loop
'code
EDIT: updated code
Thanks a lot!
Dbut your excel formula is referencingE?