1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Sub Macro()
Dim Plage As Range
Dim Cel As Range
Dim NumFormat As String
With Worksheets("KAR02A")
Set Plage = .Range(.Cells(6, 1), .Cells(.Rows.Count, 1).End(xlUp))
End With
With Plage
NumFormat = Plage(1).NumberFormat 'récupère le format sur la première cellule de la plage
.NumberFormat = "General"
Set Cel = .Find(CLng(CDate("07-feb-15")), , xlValues, xlWhole)
.NumberFormat = NumFormat
End With
If Not Cel Is Nothing Then
MsgBox Cel.Address(0, 0)
Cel.Select
End If
End Sub |