April 2006
Beginner
1114 pages
98h 16m
English
Use the Databinding object’s Refresh method to refresh a list that was linked to XML data through an XML map. The Refresh method is equivalent to clicking the Refresh XML Data button on the List toolbar.
You can use the Databinding object’s LoadSettings method to change the data source used by the XML map. When combined, the LoadSettings and Refresh methods are equivalent to calling the XmlMap object’s Import method. The advantage of combining LoadSettings and Refresh is that changing the data source and refreshing the list are handled in separate steps, as shown here:
Dim xmap As XmlMap, xml As String, res As XlXmlExportResult
Set xmap = ThisWorkbook.XmlMaps("Order_Map")
' Change the data source.
xmap.DataBinding.LoadSettings (ThisWorkbook.path & "\2002.ord")
' Refresh the list from the data source.
res = xmap.DataBinding.RefreshRead now
Unlock full access