[vba] protection du caractère guillemet
Résolu/Fermé
0seb0
Messages postés
37
Date d'inscription
jeudi 16 août 2007
Statut
Membre
Dernière intervention
6 mars 2008
-
5 nov. 2007 à 14:30
0seb0 Messages postés 37 Date d'inscription jeudi 16 août 2007 Statut Membre Dernière intervention 6 mars 2008 - 5 nov. 2007 à 14:49
0seb0 Messages postés 37 Date d'inscription jeudi 16 août 2007 Statut Membre Dernière intervention 6 mars 2008 - 5 nov. 2007 à 14:49
A voir également:
- [vba] protection du caractère guillemet
- Caractère ascii - Guide
- Caractere speciaux - Guide
- Caractère spéciaux - Guide
- Caractère spéciaux mac clavier - Guide
- Rav endpoint protection - Forum Antivirus
3 réponses
ShaBoo
Messages postés
392
Date d'inscription
mercredi 12 septembre 2007
Statut
Membre
Dernière intervention
5 septembre 2009
50
5 nov. 2007 à 14:36
5 nov. 2007 à 14:36
Bonjour,
essaye ceci :
essaye ceci :
Set FS = CreateObject("Scripting.FileSystemObject") Set a = FS.CreateTextFile(a.txt, True) TmpStr = Chr(34) & "Gloup" & Chr(34) a.WriteLine ("gloup") a.WriteLine ("tu as dit" + TmpStr) a.Close
0seb0
Messages postés
37
Date d'inscription
jeudi 16 août 2007
Statut
Membre
Dernière intervention
6 mars 2008
16
5 nov. 2007 à 14:49
5 nov. 2007 à 14:49
Merci à tous, ça marche !
---> Résolu ! :-)
---> Résolu ! :-)
Utilisateur anonyme
5 nov. 2007 à 14:32
5 nov. 2007 à 14:32
Salut,
Pour rajouter des guillemets dans ton mot, fait:
TmpStr=chr$(34)+"gloup"+chr$(34)
Bonne chance !
Pour rajouter des guillemets dans ton mot, fait:
TmpStr=chr$(34)+"gloup"+chr$(34)
Bonne chance !
Set FS = CreateObject("Scripting.FileSystemObject") Set a = FS.CreateTextFile(a.txt, True) TmpStr = chr$(34)+"gloup"+chr$(34) a.WriteLine ("gloup") a.WriteLine ("tu as dit" + TmpStr) a.Close
OU
Set FS = CreateObject("Scripting.FileSystemObject") Set a = FS.CreateTextFile(a.txt, True) TmpStr = "gloup" a.WriteLine ("gloup") a.WriteLine ("tu as dit" + chr$(34)+TmpStr+chr$(34)) a.Close
Si ca ne fonctionne pas, ca veux dir que la commende Chr$() n'existe pas.