Syntax

expression.DisplayXMLSourcePane(XmlMap)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
XmlMap Optional Variant The XML map to display in the task pane.

Remarks

You can use the following code to hide the XML Source task pane.

Application.CommandBars("Task Pane").Visible = False

Example

The following example adds an XML map named Customers to the active workbook, and then displays the XML map in the XML Source task pane.

Visual Basic for Applications
Sub DisplayXMLMap() Dim objCustomer As XmlMap Set objCustomer = ActiveWorkbook.XmlMaps.Add( _ "Customers.xsd", "Root") objCustomer.Name = "Customers" Application.DisplayXMLSourcePane objCustomer End Sub
display schema map in the xml source pane display xml source pane displayxml displayxmlsource displayxmlsourcepane displayxmlsourcepane method XSD

See also: