IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Macros et VBA Excel Discussion :

Importer des fichiers ' .mm ' vers Excel en VBA


Sujet :

Macros et VBA Excel

  1. #1
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut Importer des fichiers ' .mm ' vers Excel en VBA
    Bonjour à tous,

    j'aimerai importer des fichiers d'extension '.mm' sont des carte mentale crées par le logiciel freemind ou freeplane et je veux faire un code VBA pour faire l'import de ces fichiers.
    j'ai besoins de vos conseils et vos propositions pour être sur la bonne voie s'il y'a des exemples qui me permet d'inspirer la résultat n'hésitez pas et merci pour vos aides.

    et voilà un exemple
    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    <map version="0.9.0">
    <!-- To view this file, download free mind mapping software FreeMind from <a href="http://freemind.sourceforge.net" target="_blank">http://freemind.sourceforge.net</a> -->
    <node CREATED="1519223795702" ID="ID_1835845759" MODIFIED="1519223801750" TEXT="carte">
    <node CREATED="1519223805024" ID="ID_1390948847" MODIFIED="1519223950740" POSITION="right" TEXT="exemple1">
    <richcontent TYPE="NOTE"><html>
      <head>   
     
      </head>
      <body>
        <table border="0" style="width: 80%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0">
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Nom
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Prénom
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Age
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                GERARD
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Alexis
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                28
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                LEMAIRE
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Francois
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                35
              </p>
            </td>
          </tr>
        </table>
      </body>
    </html>
    </richcontent>
    <node CREATED="1519291923283" ID="ID_1691256692" MODIFIED="1519292022892" TEXT="essaie"/>
    </node>
    <node CREATED="1519223812737" ID="ID_1515654871" MODIFIED="1519224049968" POSITION="right" TEXT="exemple2">
    <richcontent TYPE="NOTE"><html>
      <head>
     
      </head>
      <body>
        <table border="0" style="width: 80%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0">
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Département
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Unité
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Fonction
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Ingénierie
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Qualité
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Ingénieur
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Ingénierie
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Sécurité
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Ingénieur
              </p>
            </td>
          </tr>
        </table>
      </body>
    </html>
    </richcontent>
    </node>
    <node CREATED="1519223819275" ID="ID_576753259" MODIFIED="1519224139826" POSITION="right" TEXT="exemple3">
    <richcontent TYPE="NOTE"><html>
      <head>
     
      </head>
      <body>
        <table border="0" style="width: 80%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0">
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Pays
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Région
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Ville
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                France
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Iles-de-France
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Paris
              </p>
            </td>
          </tr>
          <tr>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                France
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Iles-de-France
              </p>
            </td>
            <td valign="top" style="width: 33%; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1; border-right-width: 1; border-bottom-width: 1; border-left-width: 1">
              <p style="margin-top: 1; margin-right: 1; margin-bottom: 1; margin-left: 1">
                Versaille
              </p>
            </td>
          </tr>
        </table>
      </body>
    </html>
    </richcontent>
    </node>
    </node>
    </map>
    Images attachées Images attachées  

  2. #2
    Expert éminent sénior Avatar de Menhir
    Homme Profil pro
    Ingénieur
    Inscrit en
    Juin 2007
    Messages
    16 037
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Finistère (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2007
    Messages : 16 037
    Points : 32 866
    Points
    32 866
    Par défaut
    Ce que tu veux imprimer, ce sont les données de base ou la carte heuristique ?
    Dans le second cas, le plus simple est de faire un export en JPG ou PNG pour l'importer dans Excel.

    Ce format mm n'est pas reconnu tel quel par Excel.
    Si c'est du binaire, il ne sera pas possible de l'importer sans passer par un intermédiaire.
    Si c'est du texte, il faudrait en dire plus sur la structure.
    Merci de cliquer sur pour chaque message ayant aidé puis sur pour clore cette discussion.

  3. #3
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut
    Bonjour,

    Dali29, tu repostes exactement la même demande, certes ici le forum étant le plus approprié …

    T'ayant demandé d'effectuer une recherche, un test et le contexte de ce projet
    (contraintes / périmètre d'un devoir estudiantin ou d'un stage pro encadré par un tuteur, …)
    la version et la plateforme utilisée (encore une fois non renseignées dans la préfixe de la discussion !)
    et attendant toujours des réponses, je n'envisagerais rien de plus sans
    (voir les règles de ce forum sinon consulter un modérateur pour te les rappeler).

    Il y a déjà trois voies possibles, corriger la source (faut-il encore comprendre l'origine du problème),
    extraire les données via les simples fonctions texte du VBA (voir le tutoriel de ce forum)
    ou mieux utiliser un objet Windows corrigeant automatiquement la source réclamant à peine 10 lignes de code …

    ___________________________________________________________________________________________________________
    Je suis Paris, Egypte, Nigeria, New-York, Mogadicio, Barcelone, London, Manchester, Stockholm, Istanbul, Berlin, Nice, Bruxelles, Charlie, …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  4. #4
    Expert éminent sénior Avatar de Menhir
    Homme Profil pro
    Ingénieur
    Inscrit en
    Juin 2007
    Messages
    16 037
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Finistère (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2007
    Messages : 16 037
    Points : 32 866
    Points
    32 866
    Par défaut
    Le Wiki officiel propose ça (10 min de recherche) :
    http://freemind.sourceforge.net/wiki...icrosoft_Excel
    To export to Microsoft Excel:

    Use the menu item File > Export > Using XSLT...
    Open the XSL file "mm2xls_utf8.xsl" (in /FreeMind/accessories)
    Name the export file something.xls
    Open the generated file by double-clicking it
    Merci de cliquer sur pour chaque message ayant aidé puis sur pour clore cette discussion.

  5. #5
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Dali29 avais déjà évoqué cette voie du XLST dans sa discussion originelle
    mais je la lui avais déconseillée vu de mon côté le résultat obtenu en très peu de lignes de code
    mais beaucoup de points étant restés sans explication …

    Maintenant il peut effectivement incliner vers elle en profitant de ta recherche.

    ___________________________________________________________________________________________________________
    Heureux l'étudiant qui, comme la rivière, suit son cours sans quitter son lit !
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  6. #6
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    Merci pour vos réponses,

    effectivement j'ai fait des recherche sur l'extension .mm et je n'ai trouvé aucune relation entre l'excel et fichier .mm.
    le problème proposé y'en a des tableaux qui sont stockés dans les notes des noeuds alors ça sera difficile de l'afficher en excel même avec l'utilisation de XSLT alors le code de fichier .mm rassemble à HTML sauf qu'il y'a des petites modification au niveau des caractères (exemple: &#233; donne 'é' ) je cherche un code vba qui peut faire l'import de html et je vais le modifier selon mes besoins parce que je pense que la conversion vers excel ça sera compliqué

  7. #7
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut
    Non ce n'est pas si compliqué car déjà, comme indiqué dans ta précédente discussion
    et t'ayant demandé d'effectuer une simple p'tite recherche sur le codage HTML,
    juste en ouvrant le fichier mm dans le Bloc-Notes vu que ce n'est juste que du texte
    puis après avoir effectué la toute p'tite correction il suffit d'un simple Copier puis un Coller dans Excel
    car, faut-il encore te le rappeler, Excel sait depuis longtemps déjà interpréter du bon HTML !

    Autre point, le fichier contenant différentes données, ta capture d'écran n'en présente qu'une partie.
    Sans une explication digne de ce nom, sans voir l'aperçu du résultat escompté créé déjà
    manuellement dans une feuille de calculs d'Excel (juste les données brutes sans fioriture),
    j'ai des doutes sur l'envie d'aider suscitée chez un éventuel intervenant …

    ___________________________________________________________________________________________________________
    L'effort fait les forts …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  8. #8
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    J'ai déjà fait des recherche sur HTML mais le problème j'aime faire un macro qui peut convertir n'importe fichier .mm,
    mais avec cette méthode je vais modifier les fichier .mm à chaque conversion excel et ça sera pas intéressé

  9. #9
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Tu n'as pas besoin de modifier le fichier source mais juste ce que tu envoies vers Excel
    conformément au protocole HTML …
    Fais déjà le test manuellement via le Bloc-notes par exemple, cela ne m'a pas pris une minute !

    Si au moins tu fais l'effort de clairement chercher et m'expliquer ce qui ne va pas dans la source
    ainsi que le contexte de ce besoin, on pourrait enfin progresser …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  10. #10
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Bizarrement cette fois en copiant ton "fichier" dans le Bloc-notes puis via un Copier / Coller dans Excel
    déjà sans aucune correction des données se sont correctement affichées contrairement à la fois précédente
    ce qui devrait énormément te simplifier la tache !

    Par exemple via les méthodes de l'objet DataObject (cf aide VBA) pour placer les données dans le presse-papier
    après avoir lu le fichier soit via Open For Input ou comme un fichier texte (Workbooks.Open & OpenText), à tester …
    Parmi les fonctions de texte du VBA, voir Split pour découper le fichier si besoin de réassembler les données.
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  11. #11
    Responsable Access

    Avatar de Arkham46
    Profil pro
    Inscrit en
    Septembre 2003
    Messages
    5 865
    Détails du profil
    Informations personnelles :
    Localisation : France, Loiret (Centre)

    Informations forums :
    Inscription : Septembre 2003
    Messages : 5 865
    Points : 14 524
    Points
    14 524
    Par défaut
    Bonjour,

    L'export excel peut-il être une solution ?
    Voir sur le site de freemind :
    http://freemind.sourceforge.net/wiki...ort_and_export

  12. #12
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    Marc-L exactement j'ai déjà fait fait ça mais le problème que les tableaux ne s'affichent pas, si vous avez des cours ou tutoriel sur ces fonctions ça sera intéressant.
    Arkham46 j'ai essayé tout les méthodes de l'export qui se trouvent dans le site de freemind ou freeplane sachant que le deux logiciel ont la même fonctionnalité mais juste freeplane est plus récent, le problème que j'ai besoin des tableaux qui sont enregistrés dans les notes et avec l'export ne s'affichent pas dans le fichier excel mais à propos des noeuds sont bien lisibles.

  13. #13
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Et pourtant de mon côté rien qu'en ouvrant le fichier directement dans Excel j'ai bien un tableau affiché !
    Et manuellement entre le Bloc-notes et Excel je récupère tout et à partir de là c'est simple à coder …
    Et tu as fait quoi exactement ?!   Tu n'as toujours rien montré ni daigné répondre aux questions posées …

    Voir dans le forum HTML pour le cours idoine et dans les tutoriels de ce forum pour les fonctions VBA texte.
    Sachant que pour l'un de mes codes (cf post #10) tout est déjà dans l'aide VBA interne …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  14. #14
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    Marc-L vous avez enregistré le fichier en html? ou xml ?

  15. #15
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut





    J'ai juste enregistré tel quel le texte du post initial censé représenter le contenu d'un fichier .mm …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  16. #16
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    Excusez moi , vous avez fait la copier coller de fichier dans un macro excel ou juste l'ouvrir tant que fichier html?

  17. #17
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Bis repetita :   j'ai copié le texte tel quel dans le Bloc-notes puis l'ai enregistré en .mm …

    Ouverture normale comme tout classeur via l'icône dédiée ou encore via un Glisser / Déposer, bref du basique !
    J'ai testé aussi le Copier/Coller d'une partie intéressante comme indiqué déjà plusieurs fois …
    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  18. #18
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    Normalement y'a plusieurs tableaux mais y'a qu'un seul tableau affiché dans l'excel comme indique l'image suivante:
    Nom : capture essaie 1 .PNG
Affichages : 257
Taille : 5,0 Ko

    j'ai pris un exemple très simple avec 3 ou 4 tableaux
    lorsque j'ai essayé de copier coller un fichier lourd où y'a plusieurs instructions il m'affiche un message d'erreur.
    Nom : Capture essaie 2.PNG
Affichages : 270
Taille : 8,6 Ko

  19. #19
    Expert éminent sénior
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Points : 18 677
    Points
    18 677
    Par défaut

    Donc comme déjà annoncé, Excel sait lire du html standard (évidemment pas tout à fait le cas ici)
    donc par exemple juste en découpant le fichier en parties html intéressantes et via un Copier/Coller
    comme tu peux déjà le tester manuellement depuis le Bloc-notes !
    Rien de compliqué à coder :  juste de l'extraction de blocs de texte au sein d'un fichier texte …

    Vers une quatrième voie en un peu plus compliquée :
    si tu copies ton fichier donné en exemple en .html et que tu l'ouvres dans un navigateur
    comme par exemple Internet Explorer (ou Firefox), que constates-tu ?

    Vu déjà le manque d'information, alors pour ton fichier lourd nous sommes dans la nuit totale :

    C'est parce que la vitesse de la lumière est plus rapide que celle du son que tant de gens paressent brillants avant d'avoir l'air con ! (Thomas Boishardy)

  20. #20
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Janvier 2018
    Messages
    51
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 31
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2018
    Messages : 51
    Points : 3
    Points
    3
    Par défaut
    je vous montre que ce que ça donne ce fichier en html et en xml mais l’intérêt c'est de faire ouvrir ce fichier directement en excel à l'aide de macro vba
    parce que si on va convertir ce fichier en html et après le faire ouvrir en excel ça sera possible mais je cherche une méthode direct vers excel.


    en html:




    en xml:
    Images attachées Images attachées   

Discussions similaires

  1. Importer des fichiers ' .mm ' vers Excel avec VBA
    Par Dali29 dans le forum Microsoft Office
    Réponses: 11
    Dernier message: 16/03/2018, 11h59
  2. Importer des fichiers access vers sas automatiquement
    Par benvanbelgie dans le forum SAS Base
    Réponses: 12
    Dernier message: 31/10/2013, 15h55
  3. Réponses: 0
    Dernier message: 07/06/2010, 16h01
  4. [MySQL] importer des fichiers word et excel vers base de donnée mysql
    Par malombe dans le forum PHP & Base de données
    Réponses: 3
    Dernier message: 23/07/2009, 19h20
  5. Importation de fichier Access vers EXCEL en VB
    Par yoruichi93 dans le forum IHM
    Réponses: 1
    Dernier message: 12/06/2006, 19h53

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo