ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set the values of set of ranges to zero then restore previous valu (https://www.excelbanter.com/excel-programming/424088-set-values-set-ranges-zero-then-restore-previous-valu.html)

Caroline

Set the values of set of ranges to zero then restore previous valu
 
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
--
caroline

curlydave

Set the values of set of ranges to zero then restore previousvalu
 
On Feb 13, 10:19*am, caroline
wrote:
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
--
caroline


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


All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com