copying results from one sheet and paste in next available cell in another

sl1990

New Member
Joined
Jun 3, 2011
Messages
20
Hi ive got 150 sheets (named sheet1-150) in each of these ive got the results of a macro ive run to determin a rank.

the results are in z2,z4,z6 all the way to z20. i also want to copy the cell a1.

i then want to paste these in a sheet called results, in the A collum, i would like the sheet1 results to pasted into A1 and then the sheet2 results into the next available cell in the A collum

any idea how i would do this ?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try

Code:
Sub test()
Dim i As Long
For i = 1 To 150
    With Sheets("Sheet" & i)
        .Range("A1").Copy Destination:=Sheets("results").Range("A" & Rows.Count).End(xlUp).Offset(1)
        .Range("Z2:Z20").SpecialCells(xlCellTypeConstants).Copy Destination:=Sheets("results").Range("A" & Rows.Count).End(xlUp).Offset(1)
    End With
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,776
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top