this should take care of that
Private Sub Worksheet_Activate()
Dim Sh As Worksheet
Dim Newsh As Worksheet
Dim LR As Long, NR As Long
Application.ScreenUpdating = False
Set Newsh = ThisWorkbook.Sheets(Sheet20.Name)
Newsh.Range("C12").CurrentRegion.Offset(1).Clear
NR = 13
For Each Sh In ThisWorkbook.Worksheets
If Sh.Name <> Sheet1.Name And Sh.Name <> Sheet7.Name And Sh.Name <> Sheet20.Name And Sh.Visible Then
LR = Sh.Range("B" & Sh.Rows.Count).End(xlUp).Row
If LR > 8 Then
Sh.Range("C13:AJ" & LR).Copy
Newsh.Range("C" & NR).PasteSpecial xlPasteFormats 'Paste Destination
Newsh.Range("C" & NR).PasteSpecial xlPasteAll 'Paste Destination
NR = Newsh.Range("C" & Rows.Count).End(xlUp).Row + 1
End If
End If
Next Sh
Newsh.Range("B1:B" & NR - 1).FormulaR1C1 = "=IF(RC[1]="""",0,1)"
Application.ScreenUpdating = True
End Sub
Bookmarks