07.06.2019 Views

Le Guide Complet - Excel 2010-Fonctions et formules - MicroApp

Create successful ePaper yourself

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

Instruction<br />

…<br />

Case Else<br />

Instruction<br />

Instruction<br />

…<br />

End Select<br />

Syntaxe 2 :<br />

Select Case expression<br />

Case valeur1 To valeur 3<br />

Instruction<br />

Instruction<br />

…<br />

Case valeur4<br />

Instruction<br />

Instruction<br />

…<br />

Case Else<br />

Instruction<br />

Instruction<br />

…<br />

End Select<br />

Exemple :<br />

Select Case code_client<br />

Case 1 To 3<br />

Remise=0.1<br />

Case 4<br />

Remise=0.05<br />

Case 5<br />

Remise=0.02<br />

Case Else<br />

Remise=0<br />

End Select<br />

Do… Loop<br />

Répète un bloc d’instructions aussi longtemps qu’une condition est<br />

vraie (True) ou jusqu’à ce qu’une condition devienne vraie (True).<br />

13.1. Comprendre les notions de base<br />

277

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

Saved successfully!

Ooh no, something went wrong!