#1
|
|||
|
|||
Remove item from XML mapping pane
How do I remove an item from the "Custom XML Part" dropdown menu in the XML Mapping pane?
(image attached) |
#2
|
||||
|
||||
I'm not aware of a built-in way to delete specific embedded xml files so you are going to need a macro to loop through your files and delete any on command. Try this macro
Code:
Sub CleanupXML() Dim aCX As CustomXMLPart, iResponse As Integer For Each aCX In ActiveDocument.CustomXMLParts Debug.Print aCX.NamespaceURI If Not aCX.BuiltIn Then iResponse = MsgBox(aCX.NamespaceURI & vbCr & vbCr & aCX.XML, vbYesNo, "Delete this one?") If iResponse = vbYes Then aCX.Delete End If Next aCX End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Thank you Andrew
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
adding an item to XML Mapping schema | skylinekiller | Word | 7 | 11-21-2019 08:13 PM |
Remove new macros menu item | aufet | Word VBA | 1 | 11-08-2019 05:44 PM |
outlook 2013 this item contains active content that cannot be displayed in the reading pane | w0lfshad3 | Outlook | 2 | 09-14-2016 03:44 PM |
How to remove an item from Recent doc's | KCav | PowerPoint | 1 | 05-18-2013 07:49 AM |
oulook 2003 error - this item cannot be displayed in the regading pane. | GoneFusion | Outlook | 1 | 09-22-2010 09:45 AM |