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.
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Jacko1307

Board Regular
Joined
Sep 4, 2012
Messages
85
Office Version
  1. 2016
Platform
  1. Windows
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:

kevatarvind

Well-known Member
Joined
Mar 3, 2013
Messages
1,047
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,597
Messages
5,597,089
Members
414,122
Latest member
eazyyexcel

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
Top