April 2006
Beginner
1114 pages
98h 16m
English
xmlmap.SaveDataSourceDefinition [= setting]
True saves the name of the XML data source in the workbook. False discards the name of the data source. Default is True.
Use the SaveDataSourceDefinition property to prevent the data in an XML map from being refreshed. For example, the following code imports data from the file Numbers.xml but disables the Refresh XML Data button in the user interface:
Set xmap = ThisWorkbook.XmlMaps("Numbers_Map")
fname = ThisWorkbook.path & "\Numbers.xml"
res = xmap.Import(fname, True)
xmap.SaveDataSourceDefinition = FalseRead now
Unlock full access