Sub Je_Ne_Suis_Qu_1_Macro(Optional De_Test_UNIQUEMENT_de_Test) 'Peut pas mieux dire ;-)
Dim vTest: Application.ScreenUpdating = False
Dim P As Range, P2 As Range: Set P = Range("A1:E15"): P = "=(ROW()*COLUMN())*100"
MsgBox "Max: " & Application.Max(P): MsgBox "Min: " & Application.Min(P)
Set P2 = Range("B2:B6")
MsgBox "Max: " & Application.Max(P2), , P2.Address(0, 0): MsgBox "Min: " & Application.Min(P2), , P2.Address(0, 0)
vTest = InputBox("Nombre cherché?", "Choix valeur", 1600)
Ligne = Application.Match(CLng(vTest), [B1:B15], 0)
MsgBox vTest & " trouvé!" & Chr(13) & "Ligne N°: " & Ligne & " | Adresse: " & Cells(Ligne, "B").Address(0, 0) _
, , "Colonne B"
[C1:C15] = [C1:C15].Value
Application.ScreenUpdating = True
[C1:C15].Sort Key1:=[C1], Order1:=xlAscending, Header:=xlNo
Ligne = Application.Match(CLng(vTest), [C1:C15], 1)
With Cells(Ligne, "C")
MsgBox .Address(0, 0) & "->" & .Value2, , [C1:C15].Address(0, 0)
End With
[C1:C15].Sort Key1:=[C1], Order1:=xlDescending, Header:=xlNo
Ligne = Application.Match(CLng(vTest), [C1:C15], -1)
With Cells(Ligne, "C")
MsgBox .Address(0, 0) & "->" & .Value2, , [C1:C15].Address(0, 0)
End With
End Sub