VBA / Excel : TP 4 - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

VBA / Excel : TP 4

Description:

Equivalent du SI d'excel. Syntaxe : If ( test ) then. instructions si le test est vrai. else ... Msgbox ''vous n'avez pas entr votre nom.'' Else. Msgbox ''Bonjour ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 5
Provided by: aurlie7
Category:
Tags: vba | equivalent | excel

less

Transcript and Presenter's Notes

Title: VBA / Excel : TP 4


1
VBA / Excel TP 4
  • Le bloc IF

2
If then else end if
  • Equivalent du SI dexcel
  • Syntaxe
  • If ( test ) then
  • instructions si le test est vrai
  • else
  • instructions si le test nest pas vrai
  • End if

3
Bloc IF Exemple
  • Sub politesse()
  • answer inputbox(?quel est votre nom ? ?)
  • If (answer ??) then
  • Msgbox ?vous navez pas entré votre nom?
  • Else
  • Msgbox ?Bonjour ? answer
  • End if
  • End sub

Exercice recopiez et testez
4
Exercices
  • TP 4
Write a Comment
User Comments (0)
About PowerShow.com