XmlMaps Object (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents the collection of XmlMap objects that have been added to a workbook.

Use the Add method to add an XML map to a workbook.

Sub AddXmlMap() 
 Dim strSchemaLocation As String 
 strSchemaLocation = "http://example.microsoft.com/schemas/CustomerData.xsd" 
 ActiveWorkbook.XmlMaps.Add strSchemaLocation, "Root" 
End Sub