Hello and thank you for reading and responding to my question.
I am writing a simple Macro to copy certain cells from one sheet and paste them into another. What I do not remember how to do is copy the varying data set, and paste it to the new sheet.
For example if I have data in A2 through F2, one time, but the next have data from A2 down to F100, and another A2 to F504 (and so on with different variables).
How do I always have the macro copy all data and paste it to the new sheet? VBA below
Range("A2:F2").Select
Selection.Copy
Sheets("Automated Data").Select
Range("A2").Select
ActiveSheet.Paste
Range("G2").Select
Sheets("Summarized-data").Select
Range("J2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Automated Data").Select
ActiveSheet.Paste
Sheets("Summarized-data").Select
ActiveWindow.SmallScroll ToRight:=1
Range("N2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Automated Data").Select
Range("H2").Select
ActiveSheet.Paste
End Sub
I am writing a simple Macro to copy certain cells from one sheet and paste them into another. What I do not remember how to do is copy the varying data set, and paste it to the new sheet.
For example if I have data in A2 through F2, one time, but the next have data from A2 down to F100, and another A2 to F504 (and so on with different variables).
How do I always have the macro copy all data and paste it to the new sheet? VBA below
Range("A2:F2").Select
Selection.Copy
Sheets("Automated Data").Select
Range("A2").Select
ActiveSheet.Paste
Range("G2").Select
Sheets("Summarized-data").Select
Range("J2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Automated Data").Select
ActiveSheet.Paste
Sheets("Summarized-data").Select
ActiveWindow.SmallScroll ToRight:=1
Range("N2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Automated Data").Select
Range("H2").Select
ActiveSheet.Paste
End Sub