Name

xpath.Clear

Synopsis

Removes an XML mapping from a list column or range. Use this method to remove elements from an XML map. For example, the following code removes the mappings for each of the columns in a list:

Set ws = ThisWorkbook.Sheets("Sheet1")
Set lo = ws.ListObjects(1)
For Each lc In lo.ListColumns
    lc.XPath.Clear
Next

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.