When I run this code I manage to fill the table that I want to, but in the last iteration it breaks on the Range("F" & r)... line and gives the error1004. I don't see why. Indeed running it works... but yields the error at the end.
Sub Stuff1()
Dim r As Integer
r = 37
Do
Range("F" & r).GoalSeek Goal:=0, ChangingCell:=Range("D" & r)
r = r + 1
Loop Until IsEmpty("E" & r)
End Sub
Note: I tried doing a Do While Not and it happens exactly the same. Edit: Excel 2013 btw