V
Vacuum Sealed
Hi all
Was hoping someone could help me with the correct layout for cycling
through a collection of sheets which are exactly the same, all 12.
They represent one sheet for each month in the year and are structured
in the following:
A5:J1500
The range from each sheet needs to be copied to the summary sheet.
Kinda something like:
Dim Wkb as Workbook
Dim Wks as Worksheet
Dim Rng as Range
Dim TS as Worksheet
Set rng = ("A5:J1500")
Set TS = Sheets("Summary")
Set wks = ("Jan", "Feb", "Mar"....."Dec")
For each Wks in Wkb
Rng.copy(<>"", SpecialCells(Rows.xlUp), Not xlFormulas
TS.Activate
Columns("A").Find("", Cells(Rows.Count, "A"), xlValues, _
xlWhole, , xlNext).Select
Selection.PasteSpecial Paste:=xlPasteValues,Operation:=xlNone,SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
'Do my other stuff
TIA
Mick.
Was hoping someone could help me with the correct layout for cycling
through a collection of sheets which are exactly the same, all 12.
They represent one sheet for each month in the year and are structured
in the following:
A5:J1500
The range from each sheet needs to be copied to the summary sheet.
Kinda something like:
Dim Wkb as Workbook
Dim Wks as Worksheet
Dim Rng as Range
Dim TS as Worksheet
Set rng = ("A5:J1500")
Set TS = Sheets("Summary")
Set wks = ("Jan", "Feb", "Mar"....."Dec")
For each Wks in Wkb
Rng.copy(<>"", SpecialCells(Rows.xlUp), Not xlFormulas
TS.Activate
Columns("A").Find("", Cells(Rows.Count, "A"), xlValues, _
xlWhole, , xlNext).Select
Selection.PasteSpecial Paste:=xlPasteValues,Operation:=xlNone,SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
'Do my other stuff
TIA
Mick.