That's not a UserForm. It takes a lot of unnecessary VBA to move the last row of a sheet table to the first row of a UserForm ListBox.
Replacewith.Cells(x, 1).EntireRow.SpecialCells(xlConstants).ClearContentsRows(x - 1).ClearContents
That's not a UserForm. It takes a lot of unnecessary VBA to move the last row of a sheet table to the first row of a UserForm ListBox.
Replacewith.Cells(x, 1).EntireRow.SpecialCells(xlConstants).ClearContentsRows(x - 1).ClearContents
Please take the time to read the Forum FAQ