+ Reply to Thread
Results 1 to 3 of 3

Excel - XML mapping.

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Excel - XML mapping.

    Hi all.

    I have a similar issue to a question that can be found in this thread, and it is the closest to answer I've been able to find through using google.

    I have the same issue in that I have created my XSD file and pulled it in to Excel. When I manually drag it on to the cell I want it applies the XSD across all columns and rows and I can then export the XML. The problem is a I have no idea how to use this in a macro. I 've looked at the thread above and used the solution and googled ListColumn.XPath.SetValue syntax which the thread opener used as solution but I just can't get it working.

    Is someone able to very kindly just show me what the syntax should look like if I'm applying to sheet A Cell B1 and then I can adapt it to use on all sheets in the workbook.

    thanks very much.

  2. #2
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel - XML mapping.

    EDIT: I'm slowly getting there. I have corrected the last error, the name was not the same as liseted in the maps view and needed to CAM002_Map. Now when I run it I get The Xpath is not valid because either the Xpath syntax is incorrect or is not supported by Excel. It does turn the table into XML though, but as I need this to be an automated process to output a ot of Excel to XML I can't be cending the code. Can anyone help? It lists this part of the code as being the error in the debug.

    Please Login or Register  to view this content.
    I've created something, placed it below, however It get a Runtime Error '9' Subscript out of range when I run it and it highlights
    Please Login or Register  to view this content.
    as being the error when I debug it.

    Please Login or Register  to view this content.
    Last edited by Bunta; 10-10-2013 at 05:40 AM.

  3. #3
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel - XML mapping.

    In case anyone is interested I have the final solution and I have posted it below along with a screenshot of the XML source view in my spreadsheet so if any one has the same issue they can see where the names came from. The issue was I had the names incorrect in the Xpath. The can found in the XML source picture. Just needs to be updated to the names others are using:

    Please Login or Register  to view this content.
    XML source.png

+ 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] mapping with excel
    By silvarisbrett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. mapping with excel
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  3. mapping with excel
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] mapping with excel
    By silvarisbrett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] mapping with excel
    By silvarisbrett in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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