+ Reply to Thread
Results 1 to 4 of 4

Import & Export Excel as XML

  1. #1
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44

    Import & Export Excel as XML

    hello all,

    Has anybody got any good VBA to export Excel tables as XML, and alternatively import XML into Excel with VBA.

    Thanks in advance
    Conor

  2. #2
    Forum Contributor
    Join Date
    12-11-2004
    MS-Off Ver
    2007
    Posts
    137
    Hello


    This macro use A1:F20 content to create an xml file.

    Please Login or Register  to view this content.



    This macro import xml file in worksheet

    Please Login or Register  to view this content.

    (Created with Excel2007)


    Regards
    michel
    Last edited by michelxld; 11-13-2007 at 07:53 AM.

  3. #3
    Registered User
    Join Date
    07-24-2006
    Location
    Dublin, Ireland
    Posts
    44
    thanks Miclexld. Works fine

  4. #4
    Registered User
    Join Date
    06-26-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Re: Import & Export Excel as XML

    Hi,
    I tried to use the macro above,
    it showed up as an error to me.
    "Sub CreationElement(strElem As String, Donnee As Variant, oNom As IXMLDOMElement"
    compile error, User defined type defined.

    Please help. I am kinda struggling to merge 10 XML files (with same tags and different data) into a single one.

    Thanks in advance..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1