Sub selectionner(target As Range, Num As Integer)
Dim zoneToSelect As Range
For Each cell In target
If cell = Num Then
If zoneToSelect Is Nothing Then
Set zoneToSelect = cell
Else
Set zoneToSelect = Union(zoneToSelect, cell)
End If
End If
Next cell
zoneToSelect.Select
End Sub
Sub test()
Call selectionner(Range("A1:A30"), 1)
End Sub