Reputation: 41
How to insert the formula for the entire column using vba
Upvotes: 1
Views: 29202
Reputation: 707
like this?
this is for relative notation RC
Columns("N:N").FormulaR1C1 = "=SUM(RC[1],RC[2])"
Edit:
you could also use this notation (absolute) :
Columns("M:M").Formula = "=SUM(B2:B3)"
Upvotes: 6