Hi and Thank You Both,
When i put this in my VBA script and run it, it fill the cells ok but then comes up with the following err.
My Code:
Dim rng As Range
Dim R As Integer
Dim C As Integer
Set rng = Range("E10") 'Range
rng.Select
Application.ScreenUpdating = False
For R = 1 To 40 'loop rows,
rng.Offset(R, 0).Select
Selection.Cells.FormulaR1C1 = "=IFERROR(VLOOKUP(R9C,Tabelle2!R2C1:R5500C42,ROW(R[-8]C1),TRUE),"")"
For C = 1 To 47 'loop columns,
rng.Offset(R, C).Select
Selection.Cells.FormulaR1C1 = "=IFERROR(VLOOKUP(R9C,Tabelle2!R2C1:R5500C42,ROW(R[-8]C1),TRUE),"")"
Next C
Next R
Application.ScreenUpdating = True
The Error i get is:
Laufzeitfehler 1004
Anwendungs- oder objektdefinierter Fehler
Any Ideas
Bookmarks