1

How to insert the formula for the entire column using vba

1 Answer 1

6

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)"
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you so much for your answer but i am facing another problem ,In my sheet i am insert the formula in the cell at the range G5 from G5 onwards i want to auto fill the formula in the entire column it is possible ?
Tried to paste this function but i get a runtime error..? .Formula = "=CONCATENATE(LEFT(C2;4);LEFT(A2;3);RIGHT(B2;3))"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.