Hi,
I am quite new to VBA. I just started with a new macro of which a part is supposed to fill in formulas automatically in 3 loops. These formulas depend on several variables I created earlier. To assign these formules I found I had to use the code Range().Formula. The problem is that it doesn't work in the first 2 loops, but it does in the third. I did the same each time though (only different formules). I hope you can help me out here.
Here some lines of code in a part that doesn't work:
arr1 = celnaam1 & ":" & celnaam2
arr2 = celnaam3 & ":" & celnaam4
functie = "=" & celnaam & "*" & doelf & "-SOMPRODUCT(" & arr1 & ";" & arr2 & ")"
ActiveCell.Offset(1, 0).Select
Range(ActiveCell.Address).Formula = functie
Regards,
Jonas
Bookmarks