Bạn ơi cho mình xin code này mà sửa dùm mình xóa cột B nhé! Cảm ơn ạ!Bạn tham khảo đoạn code này nhé
PHP:Sub del_row() With Application .DisplayAlerts = False .ScreenUpdating = False End With Dim rc As Long rc = Cells(Cells.Rows.Count, 1).End(xlUp).Row Do If Trim(Cells(rc, 1)) = "" Then Cells(rc, 1).EntireRow.Delete Shift:=xlUp End If rc = rc - 1 Loop While rc > 1 With Application .DisplayAlerts = True .ScreenUpdating = True End With [A1].Select End Sub