+ Reply to Thread
Results 1 to 4 of 4

Export each row from Excel to separate xml and name xml based on first row

  1. #1
    Registered User
    Join Date
    02-13-2019
    Location
    Slovenia
    MS-Off Ver
    Professional 2016
    Posts
    12

    Export each row from Excel to separate xml and name xml based on first row

    Hello,

    as the title describes I've been trying to export Excel rows with multiple columns to separate xml files named based on first column.

    Tried modifying a few codes, spent a few hours on the challenge, did something similar a few years ago but can't get it to work. I only managed to export all rows to a single xml. Seems like a situation that would be common enough. Was using macros in Office Professional Plus 2016.

    Any help would be greatly appreciated, hopefully I managed to attach the xls sample and the desired xml (txt). I'm new here, hope my thread isn't too inappropriate, thank you in advance and have a great day.
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Export each row from Excel to separate xml and name xml based on first row

    How about this.

    Had to put the code in a textfile because firewall is acting up on html-tags.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    02-13-2019
    Location
    Slovenia
    MS-Off Ver
    Professional 2016
    Posts
    12

    Re: Export each row from Excel to separate xml and name xml based on first row

    Bakerman2 thank you for your reply, tried it and your macro is just what I needed. Have to adjust the data and code a little, but hopefully I won't have any additional questions. Code is short and looks simple, and yet I would never be able to put it together sadly, well maybe in the future.

    Thanks again, added reputation, marked thread as solved, you have made my work much easier, hope code didn't take up a lot of your time. Hope your efforts are repaid one way or another.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Export each row from Excel to separate xml and name xml based on first row

    Glad to help and thanks for rep+.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Export Each Excel Row as Separate Files with Header Row
    By biggummy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-23-2016, 10:25 AM
  2. [SOLVED] Automatically export columns to a separate sheet based on initials.
    By Starmusk10 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-11-2016, 08:20 AM
  3. Replies: 4
    Last Post: 12-04-2015, 04:20 PM
  4. [SOLVED] Excel - export group of row to separate sheet conditionally
    By navafolk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-26-2015, 10:20 PM
  5. Export to separate documents based on specific critera
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-02-2013, 07:02 AM
  6. separate and export to xml
    By Geoff Stacey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2011, 05:22 PM
  7. Replies: 2
    Last Post: 11-29-2007, 04:22 PM

Tags for this Thread

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