I have a formula that calculates an answer for a number of input variables. I want to copy the result of the calculation to a cell lower down in my spreadsheet, and then, when I redo the calculation with different variables, copy and paste the new answer to the next cell underneath the first one, and so forth. I do not wish to use a listbox to display the collection of answers. The following code almost does what I want, but pastes to a different worksheet and I can't figure out how to specify the cell I want it to begin pasting to:
Set CopyRange = Sheet1.Range("A1")
Set NextCell = Sheet2.Cells(Cells.Rows.Count, 1).End(xlUp).Offset(1, 0)
CopyRange.Copy NextCell
I would appreciate any help. Thanks
Tags: