Sub buscalotes()
Dim variable As String
Dim resultado As Range
rango = "D2:J132"
variable = InputBox("Lote a buscar: ")
If variable = "" Then Exit Sub
Set resultado = Range(rango).Find(variable, LookAt:=xlWhole)
If Not resultado Is Nothing Then
Range(resultado.Address).Select
Else
MsgBox "No existe el lote"
End If
End Sub

No hay comentarios:
Publicar un comentario