Bonjour,
Je vous expose mon problème, j'aimerais faire une fonction max parmi la range B2:B11, cependant je veux renvoyer dans une msg box la celulle à sa gauche colum A qui est un nom j'ai écrit:
Sub calcul_()
Dim myrange As Range
Dim societe As String
Dim Rapport As Worksheet
Set myrange = Worksheets("Rapport").Range("B2:B11")
max = Application.WorksheetFunction.max(myrange)
Range("B2:B11").Select
selection.Find(What:=max).Select
societe = ActiveCell.Offset(0, -1)
MsgBox "la société est " & societe
End Sub
ca bug sur selection.Find(What:=max).Select erreur d'éxécution 91 ps mon selection en se met pas en majuscule Selection
Merci pour votre aide