The above code (Post#4) is helpful when you add a single row at a time in the master file. But if you are pasting multiple rows at once in the master file, try the code given below......
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lr As Long, lr1 As Long
Dim ws As Worksheet, ws1 As Worksheet
Dim rng As Range, cell As Range
Set ws = ThisWorkbook.Sheets("Master file")
lr = ws.Cells(Rows.Count, 1).End(xlUp).Row
If Not Intersect(Target, Range("A:K")) Is Nothing Then
Set rng = ws.Range("A2:A" & lr)
For Each cell In rng
cell.Select
For Each ws1 In Worksheets
If cell = ws1.Name Then
lr1 = ws1.Cells(Rows.Count, 1).End(xlUp).Row + 1
ws.Range(Cells(cell.Row, 1), Cells(cell.Row, 11)).Copy ws1.Range("A" & lr1)
Exit For
End If
Next ws1
Next cell
End If
End Sub
Bookmarks