returns a workbook object with the XML data mapped to your spreadsheet: : Excel XML « Excel « VBA / Excel / Access / Word






returns a workbook object with the XML data mapped to your spreadsheet:

 
Sub ImportXMLtoList()
     Dim strTargetFile As String
     Application.DisplayAlerts = False
     strTargetFile = ThisWorkbook.Path & "\Employee.xml"
     Workbooks.OpenXML FileName:=strTargetFile, LoadOption:=xlXmlLoadImportToList
     Application.DisplayAlerts = True
End Sub

 








Related examples in the same category

1.Get Schema
2.Programmatically Changing XML Map Properties
3.Refresh Your XML Data
4.Creating Your Own XSD
5.Importing Data into an Existing XML Map
6.Exporting to an XML File
7.Leveraging DOM and XPath to Manipulate XML Files
8.Using DOM with ADO to Convert Excel Data to XML
9.Compatibility Mode
10.XML transform
11.Export to XML file