VBA Code needed to copy data across Multiple Tabs from same column into one column

Marsman

Board Regular
Joined
May 13, 2013
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Good afternoon - could I get some help on being able to move all the data in Column "I" (eye) across all tabs (with the exception of the tab named "Summary") into one column of the "summary" tab?

Currently I have a script running which collects all the data in each tab and it copies it to the Summary tab where the data from each tab is in its own column then I am manually moving all the column data into one column.

{Script}

Sub Transponder_Gathering()
Dim C As Integer
Dim WS As Worksheet
C = 1
For Each WS In Worksheets
If WS.Name <> "Summary" Then
WS.Range("I:I").Copy Destination:=Sheets("Summary").Cells(, C).EntireColumn
C = C + 1
Else
End If
Next WS
End Sub
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Something like:
Code:
Sub Transponder_Gathering()
  Dim smry As Worksheet, ws As Worksheet
    Set smry = Sheets("summary")
    For Each ws In Worksheets
        If ws.Name <> "Summary" Then
            ws.Range("I1", ws.Cells(Rows.Count, "I").End(xlUp)).Copy _
                Destination:=smry.Cells(Rows.Count, "A").End(xlUp).Offset(1)
        End If
    Next ws
End Sub
 
Upvote 0
Good afternoon - could I get some help on being able to move all the data in Column "I" (eye) across all tabs (with the exception of the tab named "Summary") into one column of the "summary" tab?

Currently I have a script running which collects all the data in each tab and it copies it to the Summary tab where the data from each tab is in its own column then I am manually moving all the column data into one column.

{Script}

Sub Transponder_Gathering()
Dim C As Integer
Dim WS As Worksheet
C = 1
For Each WS In Worksheets
If WS.Name <> "Summary" Then
WS.Range("I:I").Copy Destination:=Sheets("Summary").Cells(, C).EntireColumn
C = C + 1
Else
End If
Next WS
End Sub


Works exactly as i need. Is there a easy enough code to delete any of the blank rows all in this same process? Not each sheet is exactly the sam number of data points and the data in not sequentially filled in.


I1,I2,I3,I4,I8

So on the Summary page I would need those blank rows, that would be represent I5, I6 and i7 (examples), be deleted from the Summary page.
 
Upvote 0
You can use this code to delete the empty rows in column A.

Code:
.Range("A2:A" & .Rows.Count).SpecialCells(4).EntireRow.Delete
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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