I have been trying to make a simple loop that cycles through a group of worksheets that contain data and paste them onto a master sheet. The amount of sheets can vary depending on how many people use it (1 sheet per user) and the amount of rows can too (depending on how much work is allocated), however the amount of columns will remain the same. Essentially I'm trying to transfer whatever is populated on user's sheets on to a master for reporting purposes. I have been trying to piece together bits of code without success
Public Sub moveData()
Dim wsCount As Integer
Dim I As Integer
wsCount = ActiveWorkbook.Worksheets.Count
For I = 1 To wsCount
Worksheets(I).Activate
Range("A2:O4").Select
Application.Selection.Copy
Sheets("Master").Activate
ActiveSheet.Range("A2").End(xlDown).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues
Next I
End Sub
However, whenever its ran it copies the master too. Is there a way of getting it to ignore the master and just paste into it? Thank you