I have a table (ListObject) in Excel 2007 with a total of 10 columns. I want to fill this table with data from a XML file with other column names.
I import the XML data with this code:
I know that it's possible to handle XML data in some special ways, but I am not familiar with these. How is it possible 'directing' the XML data to the correct columns?
I import the XML data with this code:
Code:
Public Sub ImportXML()
ActiveWorkbook.XmlImport URL:=Application.GetOpenFilename(FileFilter:="XML Files (*.xml*), *.xml*", Title:="Choose File To Copy", MultiSelect:=False), ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$A$1")
End Sub
I know that it's possible to handle XML data in some special ways, but I am not familiar with these. How is it possible 'directing' the XML data to the correct columns?