Aller au contenu principal

Archives

Catégorie : Divers

VBA pour débutant - Une boucle

Bonjour, Voici un petit code pour débutant qui permet d'afficher un message 5 fois en utilisant une boucle. Le fichier est ici. Sub subBonjour5Fois() 'Definition de la variable Dim iAfficherBonjour As Integer 'Faire une boucle qui va s'executer 5 fois For iAfficherBonjour = 1 To 5 'Afficher "Bonjour" MsgBox "Bonjour", vbOKOnly Next End Sub Dans […]

Lire l’article →