Set the values of set of ranges to zero then restore previous valu

C

caroline

Hello,

Dim i As Long
For i = 0 To 49
Set Rg = Range(Range("Country1").Offset(i * 75 + 20, 6),
Range("Country1").Offset(i * 75 + 23, 23))
Next

I would like to set the value of Rg to Zero, copy and paste the result of
the calculation, then restore the previous values of Rg.

Any idea?
Thanks
 
C

CurlyDave

Hello,

Dim i As Long
For i = 0 To 49
                Set Rg = Range(Range("Country1").Offset(i * 75 + 20, 6),
Range("Country1").Offset(i * 75 + 23, 23))                  
Next

I would like to set the value of Rg to Zero, copy and paste the result of
the calculation, then restore the previous values of Rg.

Any idea?
Thanks

Nope, you description is hard to follow, please elaborate.
 

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