RerchecheV en VBA
Fermé
Horusbk
-
6 juil. 2017 à 10:06
ccm81 Messages postés 10908 Date d'inscription lundi 18 octobre 2010 Statut Membre Dernière intervention 2 mai 2025 - 8 juil. 2017 à 15:46
ccm81 Messages postés 10908 Date d'inscription lundi 18 octobre 2010 Statut Membre Dernière intervention 2 mai 2025 - 8 juil. 2017 à 15:46
A voir également:
- RerchecheV en VBA
- Excel compter cellule couleur sans vba - Guide
- Mkdir vba ✓ - Forum VB / VBA
- L'indice n'appartient pas à la sélection vba ✓ - Forum Programmation
- Autofill vba ✓ - Forum Excel
- Vba range avec variable ✓ - Forum VB / VBA
1 réponse
ccm81
Messages postés
10908
Date d'inscription
lundi 18 octobre 2010
Statut
Membre
Dernière intervention
2 mai 2025
2 431
8 juil. 2017 à 15:46
8 juil. 2017 à 15:46
Bonjour
A adapter
Cdlmnt
A adapter
Public Sub OK()
Dim obj As Object, PLAGEparticularite As Range, valeur, resultat
'RECHERCHEV(K3;PLAGEparticularite;2;0))
Set PLAGEparticularite = Range("B5:D15")
valeur = Range("K3").Value
Set obj = PLAGEparticularite.Find(valeur, , , xlWhole)
If obj Is Nothing Then
MsgBox valeur & " pas trouvé"
Else
resultat = obj.Offset(0, 1)
MsgBox "resultat : " & resultat
End If
End Sub
Private Sub Worksheet_Activate()
Call OK
End Sub
Cdlmnt