I have created a form in VBA which fills cells in an Excel sheet displayed as follows.
As you could observe, "Numéro de document" repeats itself.
I would like that whenever I enter the same "Numéro de document" and that I validate the form, the code finds it in column C3 and inserts the row under.
More else, if this "Numéro de document" does not exist, it inserts the row at the end of the list
Could you advise?
Thanks in advance
B3 | C3 | D3 | E3 |
Fiche de transmission | Numéro du document | Nom du document | Date de réception |
Fiche | Numéro | Nom | Date |
ABC-FDT-EPBT-001 | 19010079-TSP-003-003 | Spécification Eclairage Public | 25/10/2020 |
ABC-FDT-EPBT-002 | 19010079-TSP-003-003 | Spécification éclairage publique | 04/11/2020 |
ABC-FDT-LDD20-002 | 19010079 -TSP -002-001 | Spécifications des cables MT Souterrains & Aérien Réseau 20kV | |
ABC -FDT -LDD20 -001 | 19010079 -TSP -002-001 | Fiche1: Câble aéro souterrain 3 x 1 x 240 mm2 Al | 28/10/2020 |
ABC -FDT -LDD20 -001 | 19010079 -TSP -002-001 | Fiche2: Câble aéro souterrain 1 x 120 mm2 Al | 28/10/2020 |
ABC -FDT -LDD20 -001 | 19010079 -TSP -002-001 | Fiche3: Câble aéro AAAC 1 x 148 mm2 Al | 28/10/2020 |
ABC -FDT -LDD20 -001 | 19010079 -TSP -002-001 | Fiche4: Câble aéro AAAC 1 x 54,6 mm2 Al | 28/10/2020 |
ABC -FDT -LDD20 -002 | 19010079 -TSP -002-001 | Fiche3: Câble aéro AAAC 1 x 148 mm2 Al | 04/11/2020 |
ABC -FDT -LDD20 -002 | 19010079 -TSP -002-001 | Fiche4: Câble aéro AAAC 1 x 54,6 mm2 Al | 04/11/2020 |
ABC - FDT - LDD11,6 - 001 | 19010079 - TSP -002-002 | Spécifications des câbles MT Souterrains & Aérien Réseau 11,6V | |
ABC - FDT - LDD11,6 - 001 | 19010079 - TSP -002-002 | Fiche1 : Câble aéro soutérrain 1 x 120 mm2 Al | 28/10/2020 |
ABC - FDT - LDD11,6 - 001 | 19010079 - TSP -002-002 | Fiche2 : Câble aéro AAAC 1 x 54,6 mm2 Al | 28/10/2020 |
ABC - FDT - LDD11,6 - 002 | 19010079 - TSP -002-002 | Fiche2 : Câble aéro AAAC 1 x 54,6 mm2 Al | 04/11/2020 |
ABC - FDT - CAB20 -001 | 19010079 - TSP -002-005 | Spécifications des Transformateurs MT/ BT Poste Triplex | 28/10/2020 |
ABC - FDT - CAB20 -002 | 19010079 - TSP -002-005 | Spécifications des Transformateurs MT/ BT Poste Triplex Rev1 | 04/11/2020 |
As you could observe, "Numéro de document" repeats itself.
I would like that whenever I enter the same "Numéro de document" and that I validate the form, the code finds it in column C3 and inserts the row under.
More else, if this "Numéro de document" does not exist, it inserts the row at the end of the list
Could you advise?
Thanks in advance