Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I check a collection (e.g. worksheets) collection to be empty? | Excel Programming | |||
Tab keeps cycling through the same row | Excel Discussion (Misc queries) | |||
Not cycling through each sheet | Excel Programming | |||
cycling through columns? | Excel Programming | |||
Cycling through worksheets | Excel Programming |