Hi,
I have the code
where CCIT6 is
However the code only works for the first worksheet. Can someone please help me spot where I am going wrong.
Many thanks!
I have the code
Code:
Dim ws As WorksheetFor Each ws In Workbooks("iteration_status.xlsm").Worksheets
If ws.Name <> "dd" And ws.Name <> "Summary" Then
Call CCIT6
End If
Next
End Sub
where CCIT6 is
Code:
Range("B7").End(xlToRight).AutoFilter Field:=4, Criteria1:="IT6"Range(Range(Range("B8"), Range("B8").Offset(0, 1)), Range(Range("B8"), Range("B8").Offset(0, 1)).End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Copy
Sheet1.Cells(Rows.Count, "E").End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Range(Range("B8").End(xlToRight), Range("B8").End(xlToRight).End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Copy
Sheet1.Cells(Rows.Count, "G").End(xlUp).Offset(1, 0).PasteSpecial
However the code only works for the first worksheet. Can someone please help me spot where I am going wrong.
Many thanks!