Hola a todos, consulta ; tengo la siguiente macro la cual me compara registros entre dos hojas del mismo libro, pero estas hojas tienen demasiados registros, necesito una solucion para que la macro funcione mas rapida, de antemano gracias y saludos
Sub Facturadas()
Application.ScreenUpdating = False
Sheets("No Facturadas").Select
Range("k2").Select
Posicion = 1
While ActiveCell.Value <> ""
VC = ActiveCell.Value
Sheets("Facturadas").Select
Range("K2").Select
salir = "no"
While ActiveCell.Value <> "" And salir = "no"
If ActiveCell.Value = VC Then
Sheets("No Facturadas").Select
ActiveCell.Interior.ColorIndex = 6
salir = "si"
Else
Sheets("Facturadas").Select
ActiveCell.Offset(1, 0).Range("A1").Select
End If
Wend
Sheets("No facturadas").Select
Range("K2").Select
Posicion = Posicion + 1
ActiveCell.Offset(Posicion - 1, 0).Range("a1").Select
Wend
Range("A1").Select
End Sub
saludos y abrazos.-



