Petite rectification VBA

bonjour, je fais suite à cette discussion datant de 2019 avec curulis57 :

https://forum.excel-pratique.com/excel/bordereaux-individuels-sur-base-d-un-gros-fichier-119049

131-2-copie.zip (18.30 Ko)

J'aurai besoin d'intégrer la ristourne (correspondant à la colonne 29 (ou "AC") de la bdd. Dans le programme

voici ce qu'il y a actuellement:

Adamczewski Agnes
PrixPrixPrixMontant
DateQtéLibellépublicTVACHTVATVAtotal
TVAC/unité/unitéTVAC
04/01/221BURINEX COMP 30 X 1 MG7,901,101,0461,10
17/01/221BURINEX COMP 30 X 1 MG7,901,101,0461,10
17/01/221METASLEEP NF COMP 60 22382 METAGENICS28,4928,4926,88628,49
25/01/221MICARDIS COMP 98 X 80 MG30,298,087,6268,08
Total patientHTVA36,58
TVA (sur totalHTVA)2,19
Total patientTVAC38,77
TVA %BaseTVA
6,0036,582,19
21,000,000,0

et voici ce que je souhaiterai

Adamczewski Agnes
PrixPrixPrixMontant
DateQtéLibellépublicTVACHTVATVAtotal
TVAC/unité/unitéTVAC
04/01/221BURINEX COMP 30 X 1 MG7,901,101,0461,10
17/01/221BURINEX COMP 30 X 1 MG7,901,101,0461,10
17/01/221METASLEEP NF COMP 60 22382 METAGENICS28,4928,4926,88628,49
25/01/221MICARDIS COMP 98 X 80 MG30,298,087,6268,08
Total patientHTVA36,58
Total patientTVAC38,77
ristourne1,25
prix total37,52
TVA %BaseTVA
6,0035,42,12
21,000,000,00

5bordereaux-21-2.xlsm (89.93 Ko)

Est-ce possible?

d'avance merci

Salut Julieen03,

houla, c'est loin...
Faut que je me replonge dans le code, pas trop documenté, comme d'hab !

Patience, hein !


A+

Rechercher des sujets similaires à "petite rectification vba"