I have 12 sheets which consist A-T columns in each sheet. I want to copy and combine only C and T columns from each sheets. I'm new to VBA, I've been trying for hours but still didn't work. This is the code I got from somewhere here in the forum, I'm trying to change the code but this only copy C and T from the very last sheet while the others just C without T. Can someone help me? Thanks in advance
Sub Create_Summary()
Application.DisplayAlerts = False
On Error Resume Next
Application.DisplayAlerts = True
' n = Application.Worksheets.Count
Sheets("Summary").Move after:=Worksheets(Worksheets.Count)
Dim sh As Worksheet
For Each sh In ActiveWorkbook.Worksheets
If sh.Name <> "Summary" Then
Set col = Columns(Columns.Count).End(xlToLeft)
Set col = Columns(Columns.Count).End(xlToLeft)
sh.Range("C:C,T:T").Copy Destination:=Sheets("Summary").Range(col, col)
End If
Next sh
End Sub