Copy Data From Multiple Worksheets & enter into a Single Worksheet

gsimoni

New Member
Joined
Nov 20, 2012
Messages
4
Can anyone please help me with this:
I would like to copy data from 720 worksheets (from cell "C8" and "A3") and populate that data in a single worksheet.
Someone helped me before with this, but I cannot find the thread anymore.
Thank you before hand.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
your previous posts show this code you can change the cell references

Code:
Const stName As String = "A2"
 Const stEmail As String = "D8" 
 Sub Example() 
     Dim ws As Worksheet, wsOutput As Worksheet 
    Dim rgList As Range          Application.ScreenUpdating = False          
Set wsOutput = ThisWorkbook.Worksheets.Add     Set rgList = wsOutput.Range("A1") 
         For Each ws In ThisWorkbook.Worksheets 
        If wsOutput.Name <> ws.Name Then             
With rgList                 .Value = ws.Range(stName)                 .Offset(0, 1).Value = ws.Range(stEmail)
             End With             Set rgList = rgList.Offset(1, 0)         
End If     Next ws          Application.ScreenUpdating = True          
Set wsOutput = Nothing     
Set ws = Nothing     Set rgList = Nothing      
End Sub

[//Code]
 
Last edited:
Upvote 0
try below code this code will add new Sheet in your file with name "Result" where all A3 And C8 Cell Value Will Paste A and B Column from all sheets
Code:
Sub CopyCell()
Dim ws As Worksheet
Sheets(1).Select
Sheets.Add.Name = "Result"
Sheets(2).Select
For Each ws In ThisWorkbook.Worksheets
Range("A3").Copy Sheets("Result").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
Range("C8").Copy Sheets("Result").Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
Next ws
Sheets(1).Select
Range("A1").EntireRow.Delete
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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