You'll need to change where it says "Column Letter" to the column that has the sheet name in it. For example, if the sheet name in each row is in column C, change it to "C". It needs to be changed in both places.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Columns(8)) Is Nothing Then
If Target.Cells.Count = 1 Then
If Target.Value <> "" Then
Me.Rows(Target.Row + 1).Insert
Me.Range(Me.Cells(Target.Row, 1), Me.Cells(Target.Row, 8)).Copy Destination:=Sheets(Me.Cells(Target.Row, "Column Letter").Value).Cells(Sheets(Me.Cells(Target.Row, "Column Letter").Value).Cells(Rows.Count, 1).End(xlUp).Row + 1, 1)
Application.CutCopyMode = False
Me.Cells(Target.Row + 1, 1).Activate
End If
End If
End If
End Sub
Bookmarks