Does this help?
Sub somusas()
Dim x As String
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheets("username").Activate
Set ws = ActiveSheet
x = InputBox("Please Enter the UserName")
Sheets.Add.Name = x
ws.Activate
Range("A1:A" & ActiveSheet.UsedRange.Rows.count + 1).AutoFilter 1, x
Range("A2:A" & ActiveSheet.UsedRange.Rows.count + 1).SpecialCells(xlCellTypeVisible).EntireRow.Copy Sheets(x).Range("A" & Rows.count).End(3)(2)
Sheets(x).Rows("1:1").Value = ws.Rows("1:1").Value
ws.AutoFilterMode = False
Application.ScreenUpdating = True
End Sub
Bookmarks