Multple Worksheet Tabs to form One list

NotaVBAeXpert

New Member
Joined
May 4, 2018
Messages
26
So I have 18 different tabs in which have testing data on them in the same format for each worksheet. For example, Testing Sh 1, Test Sh 2 etc. My data that I need is range C2:C22 on each sheet and I want to take this range and form one long encompassing list. So far I have this but it isn't working and I'm not exactly sure where to fix it is.

Sub ListIt()
Dim i As Long


For i = 1 To Sheets.Count - 1
With Sheets("Testing Sh 1")
Cells(i + 1, 1).Value = Sheets(i).Range("$C$5:$C$22").Value
Cells(i + 1, 2).Value = Sheets(i).Range("$C$5:$C$22").Value

End With
Next i
End Sub

Any help would be great.

Thanks,
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about
Code:
Sub ListIt()
   Dim i As Long
   For i = 1 To Sheets.Count - 1
      With Sheets("Testing Sh 1")
         .Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(21).Value = Sheets(i).Range("C2:C22").Value
      End With
   Next i
End Sub
 
Upvote 0
How about
Code:
Sub ListIt()
   Dim i As Long
   For i = 1 To Sheets.Count - 1
      With Sheets("Testing Sh 1")
         .Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(21).Value = Sheets(i).Range("C2:C22").Value
      End With
   Next i
End Sub


I'm not sure where the output on this is? And would I have to list each worksheet tab to ensure it gets copied?
 
Upvote 0
The output is on sheet "Testing Sh 1"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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