A
alfurfine
I'm using VBA in Excel 2000. In my macroI have created variables x and
y, each as
Integer. I use For .. Next to cause the spreadsheet to calculate for
each iteration a result
which appears in a designated cell of the spreadsheet.
I then wish to assign that cell value to the macro variable x. How do
I perform this Copy/Paste operation?
Further, I wish to total all such results for x into the variable y
via the macro line: y=y+x. And then I wish to display the final value
for y as a cell in the spreadsheet. How do I effect that Copy/Paste
operation?
Many thanks.
-- Allen
y, each as
Integer. I use For .. Next to cause the spreadsheet to calculate for
each iteration a result
which appears in a designated cell of the spreadsheet.
I then wish to assign that cell value to the macro variable x. How do
I perform this Copy/Paste operation?
Further, I wish to total all such results for x into the variable y
via the macro line: y=y+x. And then I wish to display the final value
for y as a cell in the spreadsheet. How do I effect that Copy/Paste
operation?
Many thanks.
-- Allen