VBA Cells Formula - Code Included

preview_player
Показать описание
Grab the Free VBA Quick Reference Guide
Adding a formula in to a cell in Excel is fairly easy in this video you will see how to send a formula to a cell using the standard formula notation and the R1C1 notation

Code
==================
Sub AddFormula()

Range("B10") = "=Sum(A9:A15)"

Range("B11") = "=Sum(R[-2]C[-1]:R[9]C[-1])"

End Sub
Рекомендации по теме
Комментарии
Автор

It doesn't get any easier than this. THANKS! Love your videos BTW.

maryannwalker
Автор

What about Declaration of the variables when doing it?

lebone
Автор

good vid. how about considering the same topic with some complex concatenation?

ajr
Автор

i wanna multiple cells ;
for example; activecell formula = +activecell + cells(i-1, 35) - cells(i-2, 35)
please help me

yasaroguzocaktan
Автор

HI
Iam klefa from Iraq pleas tell me if you dont know number of rows only you know the last row is the formula writen as below
Z=Number of rows that you need to sum it
pleas tell me solution.

klefaklefa
Автор

Didn't work for my formula, it just shows "True' instead of the index calculation

hushedinsights