Comparer deux tableaux semblent si smple ..
Résolu/Fermé
stentor-JR
Patrice33740
- Messages postés
- 2
- Date d'inscription
- jeudi 22 septembre 2016
- Statut
- Membre
- Dernière intervention
- 1 novembre 2016
Patrice33740
- Messages postés
- 8549
- Date d'inscription
- dimanche 13 juin 2010
- Statut
- Membre
- Dernière intervention
- 7 mai 2022
A voir également:
- Vba comparer deux tableaux
- Comparer deux tableaux semblent si smple .. ✓ - Forum - VB / VBA
- Comparer deux tableaux en c ✓ - Forum - C
- Excel comparer deux tableaux ✓ - Forum - Excel
- Comparer deux tableaux excel recherchev ✓ - Forum - Excel
- Fusionner des fichiers Excel : comment réunir des tableaux - Guide
1 réponse
Patrice33740
22 sept. 2016 à 16:44
- Messages postés
- 8549
- Date d'inscription
- dimanche 13 juin 2010
- Statut
- Membre
- Dernière intervention
- 7 mai 2022
22 sept. 2016 à 16:44
Bonjour,
Un exemple :
Un exemple :
Sub Test() Dim Tableau1 As Variant Dim Tableau2 As Variant Dim L As Integer Dim C As Integer Tableau1 = [A1:I20].Value Tableau2 = [A31:I50].Value For L = LBound(Tableau1, 1) To UBound(Tableau1, 1) For C = LBound(Tableau1, 2) To UBound(Tableau1, 2) Select Case C '5 colonnes à tester Case 1, 2, 6, 7, 9 If Tableau1(L, C) <> Tableau2(L, C) Then MsgBox "Différence ligne " & L & " Colonne " & C End If End Select Next C Next L End Sub