29.08.2014 Views

UNIVERSITE TOULOUSE III - PAUL SABATIER Ecole ... - LEGOS

UNIVERSITE TOULOUSE III - PAUL SABATIER Ecole ... - LEGOS

UNIVERSITE TOULOUSE III - PAUL SABATIER Ecole ... - LEGOS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

‹ s‹ ¨¡ ¨ % +¥©/ ¨-$&% !-§¢ ¥§£¢ $³¢<br />

choix = InputBox("votre choix: 1, 2 ou 3")<br />

Select Case choix<br />

Case 1<br />

collageicp traitement, nomechantillon, icpasuivant, 1<br />

MsgBox ("1) resultats avec ICPA precedent:")<br />

Case 2<br />

collageicp traitement, nomechantillon, icpasuivant, 2<br />

MsgBox ("2) resultats avec moyenne ICPA :")<br />

Case 3<br />

MsgBox ("3) resultats avec ICPA suivant:")<br />

End Select<br />

'incremente les indices pour avancer dans les fichiers pesee et listing et sauve la nouvelle feuille<br />

j = j + 1<br />

i = i + nbrligneparech<br />

Else<br />

i = i + nbrligneparech<br />

End If<br />

ActiveWorkbook.Save<br />

Loop<br />

MsgBox ("merci d'avoir joué avec nous")<br />

End Sub<br />

Private Sub collageicp(traitement, nomechantillon, icpasuivant, position)<br />

Dim lignedebut, colonnedebut, lignefin, colonnefin As Integer<br />

Select Case position<br />

Case 1<br />

lignedebut = 4<br />

colonnedebut = icpasuivant - 2<br />

lignefin = 34<br />

colonnefin = icpasuivant - 1<br />

Case 2<br />

lignedebut = 129<br />

colonnedebut = icpasuivant - 3<br />

lignefin = 159<br />

colonnefin = icpasuivant - 3<br />

Case 3<br />

lignedebut = 4<br />

colonnedebut = icpasuivant<br />

lignefin = 34<br />

colonnefin = icpasuivant + 1<br />

End Select<br />

Workbooks(traitement).Sheets("ICP").Activate<br />

ActiveSheet.Range(Cells(lignedebut, colonnedebut), Cells(lignefin, colonnefin)).Copy<br />

Sheets(nomechantillon).Range("g43").PasteSpecial Paste:=xlPasteValues<br />

Sheets(nomechantillon).Activate<br />

End Sub

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!