I'm trying to copy a range on a sheet called "template", go to the next sheet, find the next available row and paste the copied range. Then go up 7 rows, select 7 rows down to hide those rows so only the new 7 rows i've pasted are visible. But I need to exclude the sheet called "template" and one called "timecard" Thank you for your help. All parts work fine but it is not going to the next worksheet, it stays on "template" (sheet i'm copying range from). This is what i have so far:
Sub TimeCardReset()
Dim sh As Worksheet
Sheets("Template").Activate
Range("A3:G9").Select
Selection.Copy
For Each sh In ThisWorkbook.Worksheets
If sh.Name = "TEMPLATE" Then
' do nothing
ElseIf sh.Name = "TimeCard" Then
' do nothing
Else
Range("A" & Rows.Count).End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
ActiveCell.Offset(-7, 0).Select
' Select current row through 6 rows and hide those rows
ActiveCell.Resize(7, 1).EntireRow.Hidden = True
End If
Next sh
Application.CutCopyMode = False
End Sub