+ Reply to Thread
Results 1 to 2 of 2

Make an .xml file from each row of an Excel spreadsheet

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    IL
    MS-Off Ver
    2010
    Posts
    1

    Make an .xml file from each row of an Excel spreadsheet

    I've got a spreadsheet with the contents of a config file with a little over 500 rows and columns A-J. Each new row has all the attributes(settings) that are needed for 1 computer's config file. I've successfully mapped row 2 (row 1 is my headers) and exported it to an .xml file. Works great! But, I need to make a .xml for each row in my spreadsheet. Is this possible? I keep having to delete my xml maps and remap for every row, then export and that is not very efficient. I don't want all 500 rows in a single .xml file, I need one for each row. I've been reading much of the afternoon to see if it's possible with no luck. I have attached my Excel sheet with the output (that is correct in every way, and only for row 2). It would be even better if Excel could auto-name the .xml files based on what ComputerName they're for. Can anyone 'show me the way', as I may be doing this several times with other information as well. Thank you for any help you could lend.....

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Make an .xml file from each row of an Excel spreadsheet

    I do not know of a way to have excel save portions of a spread sheet out to seprate files (especially xml ones).

    However I believe this will work for you:

    In column K I set the table header to "XML Code" and used the following cell formula:
    Please Login or Register  to view this content.
    In column L I set the header to "Output File" and used the following cell formula:
    Please Login or Register  to view this content.
    Then added the following VBA macro to kick all of thes out to their files:
    Please Login or Register  to view this content.
    Last edited by Gregor y; 09-12-2014 at 03:02 PM. Reason: typo

+ 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. Replies: 0
    Last Post: 11-03-2005, 08:10 AM
  2. [SOLVED] How do I make all copies of a spreadsheet file inoperable?
    By Ed in forum Excel General
    Replies: 2
    Last Post: 10-23-2005, 12:05 AM
  3. Replies: 3
    Last Post: 09-06-2005, 12:05 PM

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