Saisie inputbox vers msgbox

Résolu
developvbdebut Messages postés 476 Date d'inscription samedi 14 août 2004 Statut Membre Dernière intervention 2 juin 2012 - 20 août 2004 à 09:28
cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 - 23 août 2004 à 12:12
Bonjour tout le monde!

J'ai réalisé une saisie d'information avec inputbox, la réponse de la saisie apparaitra dans le msgbox.

Voicie le code ci-dessous.

Dim Prenom

Prenom = InputBox("Entree votre Prénom", "Démarage ", "")
If Prenom = "" Then

MsgBox "Domage"

Else

MsgBox "Bienvenue ", vbExclamation & Prenom

End If

Je souhaiterais savoir comment faire apparaitre le point d'exclamation dans le msgbox, j'ai réalisé ce code mais il marque erreur de compilation.

Mercie de votre aide.

A bientôt

6 réponses

cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 9
23 août 2004 à 12:12
coches reponses acceptées ...MERCI

It@li@
3
MoiOlivier Messages postés 172 Date d'inscription mardi 15 juillet 2003 Statut Membre Dernière intervention 4 août 2005
20 août 2004 à 09:39
Salut,

...
else
MsgBox "bienvenue " & Prenom, vbExclamation
end if

@+
0
RicoNuch Messages postés 140 Date d'inscription mercredi 18 juin 2003 Statut Membre Dernière intervention 16 décembre 2006
20 août 2004 à 09:41
Hello...

Essaye ça :

(...)
If Prenom = "" Then

MsgBox "Dommage ! "

Else

MsgBox "Bienvenue, " & Prenom & " !", vbExclamation

End If

RicoNuch
0
cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 9
20 août 2004 à 09:43
Dommage prend 2 "m"

vbCritical ou 16 .............Affiche l'icône Message critique.
vbQuestion ou 32......... Affiche l'icône Demande d'avertissement.
vbExclamation ou........... 48 Affiche l'icône Message d'avertissement.
vbInformation ou 64 ........Affiche l'icône Message d'information.

Dim Prenom

Prenom = InputBox("Entree votre Prénom", "Démarage ", "")
If Prenom = "" Then
Reponse = MsgBox("Dommage", , "Message")
Else
Reponse = MsgBox("Bienvenue " & Prenom, vbExclamation, "Message")
End If

It@li@
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_rene38 Messages postés 1858 Date d'inscription samedi 29 juin 2002 Statut Membre Dernière intervention 17 octobre 2013 11
20 août 2004 à 11:42
pendant qu'on y est :
Prenom = InputBox("Entrez votre Prénom", "Démarrage ", "")
0
developvbdebut Messages postés 476 Date d'inscription samedi 14 août 2004 Statut Membre Dernière intervention 2 juin 2012 1
20 août 2004 à 20:46
Bonsoir

Ca fonctionne.

Mercie de votre aide.

A bientôt
0
Rejoignez-nous