A lot of details are missing in your post, but the basic structure for what you want is below. I tried to comment what you need to modify, based on how your sheets are laid out.
The code belongs in Sheet1's object.
If you need help modifying the code, please post your workbook or an example workbook that mirrors you workbook's formatting.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then ' whatever column you're entering the companies into
' where column A = 1, B = 2, etc.
Set ws2 = Worksheets("Sheet2")
Set ws3 = Worksheets("Sheet3")
'Change the "A"s below to whatever columns you want the values to go into / sort
LastRow2 = ws2.Cells(Rows.Count, "A").End(xlUp).Row
LastRow3 = ws3.Cells(Rows.Count, "A").End(xlUp).Row
ws2.Cells(LastRow2 + 1, "A").Value = Target.Value
ws3.Cells(LastRow3 + 1, "A").Value = Target.Value
ws2.Sort.SortFields.Clear
ws2.Sort.SortFields.Add Key:=Range("A1"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ws2.Sort
.SetRange Range("A:A")
.Header = xlYes
.Apply
End With
ws3.Sort.SortFields.Clear
ws3.Sort.SortFields.Add Key:=Range("A1"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ws3.Sort
.SetRange Range("A:A")
.Header = xlYes
.Apply
End With
End If
End Sub
Bookmarks