Kann mir jenamd verraten, weshalb dies nicht funktioniert?
Ich will per VBA eine Formel in Excel einfügen, aber da kommt immer der Fehler 1004.
Wenn ich die Formel manuell einfüge, kalppt es.
Danke für die Hilfe!
_________________________________________
currentrow = 10
Debug.Print "=WENN(UND(LINKS(" & Cells(currentrow, 1).Address & " ;1)<>" & Chr(34) & "?" & Chr(34) & ";" & Cells(currentrow, 5).Address & "+" & Cells(currentrow, 10).Address & " > 0);" & Cells(currentrow, 3).Address & "&" & Chr(34) & "|" & Chr(34) & "&" & Cells(currentrow, 5).Address & "+" & Cells(currentrow, 10).Address & ")"
Cells(currentrow, 11).Formula = "=WENN(UND(LINKS(" & Cells(currentrow, 1).Address & " ;1)<>" & Chr(34) & "?" & Chr(34) & ";" & Cells(currentrow, 5).Address & "+" & Cells(currentrow, 10).Address & " > 0);" & Cells(currentrow, 3).Address & "&" & Chr(34) & "|" & Chr(34) & "&" & Cells(currentrow, 5).Address & "+" & Cells(currentrow, 10).Address & ")"