I want to copy the data from each worksheet and then copy it into new a worksheet called scrap, I want to adjust where the selection is pasted for each worksheet and I am trying to do this in the rr variable, but I am getting an error. How can I continuously change the the row number as I iterate through?
Sub Macro1()
Dim ws As Worksheets
Dim starting_ws As Worksheet
Set starting_ws = ActiveSheet
ws_num = ThisWorkbook.Worksheets.Count - 2
For I = 1 To ws_num
e = 9
s = 39
ThisWorkbook.Worksheets(I).Activate
Range("A9:J39").Select
Selection.Copy
rr = "A" + CStr(s) + ":" + "J" + CStr(e)
Worksheets("scrap").Range(rr).Paste
e = e + 30
s = s + 30
Next
End Sub