add formula next to corresponding cells

T

transferxxx

I would like to add the following formula "=SUM(RC[1]:RC[2])" in cells
starting H2 to H10 next to cell G2:G10

row 10 can vary - i,e adding the following formula "=SUM(RC[1]:RC[2])"
in cells starting H2 to H100 next to cell G2:G100

Can any bod help

(i,e i would like to offset 1 column & add formula next to
corresponding cells.

Thxs
 
B

Bob Phillips

Dim nRow As Long
nRow = 10
Range("H2:H" & nRow).FormulaR1C1 = "=SUM(RC[1]:RC[2])"


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top