Need Help Moving And Copying Data Creating An Archive Of Values
Posted by Stone on December 05, 2001 6:24 PM
I need some help modifying the code below so I can achieve the following:
As data is entered into Worksheet 1, A1, I want to copy the data to Worksheet 2, A1:A200. Example: I enter a value of 5 in Worksheet 1, A1 and it is copied to Worksheet 2, A1 (my current code allows this). My next entry in Worksheet 1, A1, is copied to Worksheet 2, A2, leaving my previous entry in A1 and so on.
I want to create an archive of data that I can refer back to and chart at a later date.
Thanks in advance...
Sub CopyIt()
Dim FromRange As Range
Dim ToRange As Range
Set FromRange = Worksheets("1").Range("a1")
Set ToRange = Worksheets("2").Range("a1")
FromRange.Copy ToRange
FromRange.Copy
Worksheets("1").Paste Worksheets("2").Range("a1")
End Sub