I
IoM
I recorded a macro with 3 steps:
1. add an Xml Map to the curent workbook and choose root of the Map
2. map cells in excel file to the coresponding fields in the Map
3. export Xml data
The error I got is: “The map could not be exported, so the data was not
exportedâ€
The problem is that step 2 is not recorded. There are no lines of code to
map the excel cells to the specified XmlMap so the map can not be exported.
How to write the code?
My xml schema has
a root – a list – 2 elements: T and O
and excel has 2 columns: T and O. The two elements should be mapped to the
excel cells.
Obs.: if I repeat these steps manually it works but if I register the macro
I get error.
1. add an Xml Map to the curent workbook and choose root of the Map
2. map cells in excel file to the coresponding fields in the Map
3. export Xml data
The error I got is: “The map could not be exported, so the data was not
exportedâ€
The problem is that step 2 is not recorded. There are no lines of code to
map the excel cells to the specified XmlMap so the map can not be exported.
How to write the code?
My xml schema has
a root – a list – 2 elements: T and O
and excel has 2 columns: T and O. The two elements should be mapped to the
excel cells.
Obs.: if I repeat these steps manually it works but if I register the macro
I get error.