You are on page 1of 1

Sub Reporte()

Rows(1).EntireRow.Delete
Range("A1").Select
Selection.CurrentRegion.Select
With Selection
.HorizontalAlignment = xlGeneral
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlLTR
End With
Dim fila As Integer
fila = Cells(Rows.Count, 1).End(xlUp).Row
Range(Cells(1, 7), Cells(fila, 7)).Select
Selection.UnMerge
Range(Cells(1, 7), Cells(fila, 7)).Delete

End Sub

Sub repetidos()
'Opcional
'Application.ScreenUpdating = False
Range("AO2").Select
Do While Not IsEmpty(ActiveCell)
x = WorksheetFunction.CountIf(Range("AO:AO"), ActiveCell)
If x > 1 Then
ActiveCell.EntireRow.Delete
Else
ActiveCell.Offset(1, 0).Select
End If
Loop
Range("A1").Select
'Opcional
'Application.ScreenUpdating = True
End Sub

You might also like