Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-19-2020, 10:07 PM
Guessed's Avatar
Guessed Guessed is offline Remove item from XML mapping pane Windows 10 Remove item from XML mapping pane Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
 



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
Remove item from XML mapping pane 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft