Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2370 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  accent sous Excell

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

accent sous Excell

n°1312911
puisquetur​epondspas
Posté le 24-02-2006 à 12:02:56  profilanswer
 

bonjour
est il possible de laisser des accents dans une feuille excel lorsque j'utilise une macro d'importation de text  
Y a t il un parametre à régler?
 
voici ma macro d'importation de mon fichier text  qui me met les accent sous des symboles bizarre
Sub inserer_fichier()
 
' inserer_fichier Macro
' Macro enregistrée le 04/01/2006 par SJA
 
    With ActiveSheet.QueryTables.Add(Connection:= _
        Range("A1" ).Value, Destination:=Range("A8" ))
        .Name = "CFR_RP_SURCOMP_FP"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = False
        .RefreshPeriod = 0
        .TextFilePromptOnRefresh = False
        .TextFilePlatform = 850
        .TextFileStartRow = 1
        .TextFileParseType = xlDelimited
        .TextFileTextQualifier = xlTextQualifierNone
        .TextFileConsecutiveDelimiter = False
        .TextFileTabDelimiter = False
        .TextFileSemicolonDelimiter = True
        .TextFileCommaDelimiter = False
        .TextFileSpaceDelimiter = False
        .TextFileColumnDataTypes = Array(1, 1, 1, 1)
        .TextFileThousandsSeparator = "."
        .TextFileTrailingMinusNumbers = True
        .Refresh BackgroundQuery:=False
    End With  
 
Merci

mood
Publicité
Posté le 24-02-2006 à 12:02:56  profilanswer
 

n°1314831
Lord Nelso​n
Posté le 27-02-2006 à 21:29:51  profilanswer
 

Salut,
 
Essaie ceci :
 
.TextFilePlatform = xlMSDOS
au lieu de  
.TextFilePlatform = 850
 
C'est probablement un problème de compatibilité ANSI/ASCII.
 
A+
Horatio
 
 

n°1315435
Lord Nelso​n
Posté le 28-02-2006 à 16:07:27  profilanswer
 

Et si cela ne fonctionne toujours pas, essaie aussi :
.TextFilePlatform = xlWindows
A+
Horatio


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  accent sous Excell

 

Sujets relatifs
probleme accent en PHP5/XSLExcell déplacer valeur
probleme accent php5 avec XML/XSLImpression sous excell vba
Excell - conversion texte en nombre[HTML] problème lecture accent par google...
Accent avec SQL Servervba excell , histogramme
Problème OSQL & ACCENTProblème d'accent
Plus de sujets relatifs à : accent sous Excell


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)