du HTML dans mon CSV qui n'apparait pas correctement

  • Initiateur de la discussion Initiateur de la discussion msel
  • Date de début Date de début

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

M

msel

Guest
Bonjour,

J'essai en vain de finaliser un fichier CSV mais je bloque sur la derniere étape.
le truc est qu'il faut que j'intègre un code HTML dedans qui s'incremente auto (par un biais de concatener)
le résultat du concat et ensuiste copier/coller en special valeur.
mais quand j'exporte le le code en question il ne s'affiche pas comme il le devrait. j'ai fais le test au cas ou ma formule serait erronée et je constate que si je fais F2 et selectionne tout, le rendu est correct, mais si je fais juste un ctrl+C /ctrl+V , ca fait "bizarre".
Sachant que le but est un export de plus de 3000 lignes, si quelqu'un a une idée, je suis grand preneur.

ps: je peux laisser une copie xls en pj (avec 1 ligne)
 

Pièces jointes

Re : du HTML dans mon CSV qui n'apparait pas correctement

Bon d'après ce que je peux voir, c'est que pour répondre a un petit truc simple y a du monde.
Désolé du coup de gueule, mais ca fait plus de 4 jours que je me prend la tête et pas moyen de trouver une solution, je m'étais dis qu'avec les pros de VBA etc on trouverait une solution mais a priori c'est pas possible e pourtant xls permet l'impossible .......
 
Re : du HTML dans mon CSV qui n'apparait pas correctement

Bonjour à tous,

Et si tu t'expliquais un peu plus...
Il est facile "d'accuser" les autres mais il faut savoir se remettre en cause si les réponses ne viennent pas.

A+ à tous
 
Re : du HTML dans mon CSV qui n'apparait pas correctement

Bonjour,
Merci d'avoir répondu, au moins je sais que je ne suis pas "clair".
je dois integrer + de 3500 produits. j'ai procedé avec un concatener sur ce que je veux et normalement je dois le C\coller en valeur.
Le hic c'est qu'en voulant l'exporter le code n'est plus conforme. (je me sert de Kompozer pour verifier et bien parametrer le code d'origine)
en fait quand on C\colle le code rendu on obtient un rendu innoperant.
et quand on selectionne tout le code (avec un F2 et tout selectionné) on obtient le bon résultat.
J'ai constaté qu'en Copiant collant simplement, il y avait des guillemets qui se mettaient auto,
enfin voila le gros HIC,
 
Re : du HTML dans mon CSV qui n'apparait pas correctement

Bonjour,

Peux-tu tester ceci dans Komposer:

HTML:
<html>
<head>
<style></style>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
<style type="text/css"></style>
<style type="text/css">BODY { background: url("http://calindoudou.fr/img/ebay.png"); background-repeat: no-repeat; } }
</style>
</head>
<body>
&nbsp;
<span
style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline ! important; float: none;"><span
class="Apple-converted-space"></span></span><span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;"><br>
<br>
<br>
<br>
</span><span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);">&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</span><span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;"></span>
<br>
<span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;"><br>
<br>
</span><span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);">&nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; ~~ NEUF~~
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp;</span><span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;"></span>
&nbsp; <span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);"><br>
</span><span
style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 19px; font-style: italic; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline ! important; float: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NOUKIES<br>
</span> <big style="font-weight: bold;">OURS merre de vivre</big><br>
<span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);"></span><br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img style="width: 265px; height: 265px;" alt=""
src="http://calindoudou.fr/calindoudou/img/doudous/3034.jpg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<span
style="font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;"></span><br>
<br>
<br>
</body>
</html>

A+ à tous
 
Re : du HTML dans mon CSV qui n'apparait pas correctement

Bonjour à tous,

Je ne passe pas par une formule mais directement par une écriture dans une cellule par un tout petit bout de code :
Je pense que cette méthode ne génère pas de caractères exotiques.

VB:
Option Explicit
Sub Mise_en_Texte()
Dim X&, DerL&
DerL = Feuil1.Range("A65536").End(xlUp).Row
  For X = 2 To DerL
    Cells(X, "AI") = Cells(X, "A") & Cells(X, "B") & Cells(X, "C") & Cells(X, "D") & Cells(X, "E") & Cells(X, "F") & Cells(X, "G") & Cells(X, "AG") & Cells(X, "AH")
  Next X
End Sub

A+ à tous
 

Pièces jointes

Re : du HTML dans mon CSV qui n'apparait pas correctement

Re,

Dans le fichier joint, il faut que j'utilise l'actualisation que vous avez fait?
mais le hic c'est que le simple fait de faire un copier coller me regenere un code inexploitable:
le voici
"<html>
<head>
<style></style>
<meta content=""text/html; charset=ISO-8859-1""
http-equiv=""content-type"">
<title></title>
<style type=""text/css""></style>
<style type=""text/css"">BODY { background: url(""http://calindoudou.fr/img/ebay.png""); background-repeat: no-repeat; } }
</style>
</head>
<body>
&nbsp;
<span
style=""color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline ! important; float: none;""><span
class=""Apple-converted-space""></span></span><span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;""><br>
<br>
<br>
<br>
</span><span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);"">&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</span><span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;""></span>
<br>
<span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;""><br>
<br>
</span><span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);"">&nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; ~~ NEUF~~
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp;</span><span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;""></span>
&nbsp; <span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);""><br>
</span><span
style=""color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 19px; font-style: italic; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline ! important; float: none;"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NOUKIES<br>
</span> <big style=""font-weight: bold;"">OURS merre de vivre</big><br>
<span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204);""></span><br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img style=""width: 265px; height: 265px;"" alt=""""
src=""http://calindoudou.fr/calindoudou/img/doudous/3034.jpg"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<span
style=""font-family: 'Times New Roman'; font-size: 23px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; color: rgb(204, 51, 204); text-decoration: underline;""></span><br>
<br>
<br>
</body>
</html>

"
je n'arrive pas a pigé comment on peut arriver a une difference entre un C\c et une selection complete ..
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD
Assurez vous de marquer un message comme solution pour une meilleure transparence.
Retour