compare
DESCRIPTION
ompareTRANSCRIPT
Sheet1Compare.xlsEliminacin de Registros Comunes10BLUEBIG50BLUESMALL40BLACKBIG40BLACKBIG45WHITESMALL45YELLOWBIG50REDBIG10REDBIG85SANDSMALL85SANDBIG45REDSMALL45REDSMALL10REDBIG50REDBIGDeseamos eliminar las filas en las que los registros sean igualesCon los datos anteriores se eliminaran las filas 6 y 10.Sub DeleteMatches()Dim i As IntegerWith ActiveSheetFor i = .Range("B5").End(xlDown).Row To 5 Step -1If .Cells(i, 2) = .Cells(i, 6) And .Cells(i, 3) = .Cells(i, 7) And .Cells(i, 4) = .Cells(i, 8) Then.Cells(i, 1).EntireRow.DeleteEnd IfNextEnd Wit
Attribute VB_Name = "Hoja1"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = TrueOption Explicit
Sub DeleteMatches() Dim i As Integer With ActiveSheet For i = .Range("B5").End(xlDown).Row To 5 Step -1 If .Cells(i, 2) = .Cells(i, 6) And .Cells(i, 3) = .Cells(i, 7) And .Cells(i, 4) = .Cells(i, 8) Then .Cells(i, 1).EntireRow.Delete End If Next End WithEnd Sub
Attribute VB_Name = "ThisWorkbook"Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True