Unable to get the vlookup property of the workshee
khawla.az
Messages postés
14
Date d'inscription
Statut
Membre
Dernière intervention
-
khawla.az Messages postés 14 Date d'inscription Statut Membre Dernière intervention -
khawla.az Messages postés 14 Date d'inscription Statut Membre Dernière intervention -
Salut,
j'ai réaliser ce code pour faire une rechercher des valeurs dans deux feuilles mais il y a un erreur que je peux pas le comprendre vue que je suis débutante en VBA. l'erreur est unable to get the vlookup property of the worksheetfunction class.
j'ai réaliser ce code pour faire une rechercher des valeurs dans deux feuilles mais il y a un erreur que je peux pas le comprendre vue que je suis débutante en VBA. l'erreur est unable to get the vlookup property of the worksheetfunction class.
Sub VLookup() Dim sRes As String Dim F1, F2 As Worksheet Dim LastLig1 As Long Dim plage As Range Dim C As Range Dim i As Integer Dim rs As String Dim Resultat As Range Set F1 = Worksheets("fichier existant") Set F2 = Worksheets("fichier importé") Set plage = Sheets(2).Range("G1", Sheets(2).Range("G65536").End(xlUp)) 'LastLig1 = F2.Cells(Rows.Count, "A").End(xlUp).Row 'For ligne = 2 To LastLig1 i = 1 For Each C In plage i = i + 1 rs = F2.Range("G" + CStr(i)).Value <bold> F2.Range("Z" + CStr(i)).Value = (Application.WorksheetFunction.VLookup("rs", F1.Range("G:G"), 2, False))</bold> Debug.Print rs If IsError(F2.Range("Z" + CStr(i)).Value) Then F2.Range("Z" + CStr(i)).Value = old Else F2.Range("Z" + CStr(i)).Value = Nouveau End If Next C 'Debug.Print rs End Sub
EDIT : Ajout des balises de code (la coloration syntaxique).
Explications disponibles ici : ICI Merci d'y penser dans tes prochains messages. |
A voir également:
- Unable to get the vlookup property of the worksheetfunction class
- The legend of zelda: a link to the past - Accueil - Guide jeu vidéo
- Qwerty to azerty - Guide
- Get data back - Télécharger - Récupération de données
- Wfp to mp4 - Forum Accessoires & objets connectés
- Input signal out of range change settings to 1600x900-60hz - Forum Windows