1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| 100090: 'MODIFICATIONS DES LIENS DE PAGE
' =SI(OU((GAUCHE(B6;3)="OUT");(GAUCHE(B6;3)="PRO");(GAUCHE(B6;3)="MEC"));(TEXTE(B6;"0000"));("OUT"&TEXTE(B6;"0000")))
Range("B7").Select
For Each cell In Range("b7:u7")
cell.Value = _
"=IF(OR((LEFT(R[-1]C,3)=""OUT""),(LEFT(R[-1]C,3)=""PRO""),(LEFT(R[-1]C,3)=""MEC"")),(TEXT(R[-1]C,""0000"")),(""OUT""&TEXT(R[-1]C,""0000"")))"
Next cell
100100: 'MODIFICATIONS DU RESULTAT DES LIENS
'=SI(B6="";"";INDEX('O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!B:D;EQUIV(B7;'O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!D:D;);EQUIV('O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!B2;'O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!B2:D2)))
Range("c8").Activate
For Each cellu In Range("b8:U8")
cellu.FormulaR1C1 = _
"=si(R[-2]C="""","""",INDEX('O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!r1c2:r10000c4,EQUIV(R[-1]C,'O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!r1c4:r10000c4,),EQUIV('O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!r2c2,'O:\o\pd\pre\[Base outils Fred.xls]TOTAL'!r2c2:r2c4)))"
Next cellu
100110: 'VALIDATION DES LIENS
Range("B8").Activate
For Each cell In Range("B8:U8")
Application.SendKeys ("{F2}"), False
Application.SendKeys ("{TAB}"), False
Next cell
100120: |
Partager