Sub Multi_Sheet_Data_Collect()
Dim iSheetCount, iSheet
Dim n As Long
iSheetCount = ActiveWorkbook.Worksheets.Count
n = 1
For iSheet = 1 To iSheetCount
Worksheets(iSheet).Activate
If ActiveSheet.Name = "Dest Page" Then
Else
Range("B1,B7,B8,B10,B17").Select
Selection.Copy
Worksheets("Dest Page").Activate
Range("A" & n).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=True
n = n + 1
End If
Next iSheet
End Sub
Sub Test()
Dim ws As Worksheet
Sheets.Add(After:=Sheets(Sheets.Count)).Name = "Total"
For Each ws In Sheets
ws.Range("B1,B7,B8,B10,B17").Copy Sheets("Total").Cells(1, Sheets("Total").Cells(1, Columns.Count).End(xlToLeft).Column + 1)
Next ws
End Sub
Option Explicit
Sub CollectData()
Dim ws As Worksheet, NR As Long
If Not Evaluate("ISREF(Summary!A1)") Then
Sheets.Add(Before:=Sheets(Sheets.Count)).Name = "Summary"
Else
Sheets("Summary").Cells.Clear
End If
NR = 1
With Sheets("Summary")
For Each ws In Worksheets
If ws.Name <> "Summary" Then
.Range("A" & NR).Value = ws.Range("B1").Value
.Range("B" & NR).Value = ws.Range("B7").Value
.Range("C" & NR).Value = ws.Range("B8").Value
.Range("D" & NR).Value = ws.Range("B10").Value
.Range("e" & NR).Value = ws.Range("B17").Value
NR = NR + 1
End If
Next ws
End With
End Sub