Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2020, 06:45 PM
jsc_msoffice jsc_msoffice is offline Remove item from XML mapping pane Windows 10 Remove item from XML mapping pane Office 2016
Novice
Remove item from XML mapping pane
 
Join Date: Nov 2020
Posts: 3
jsc_msoffice is on a distinguished road
Default 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)
Attached Images
File Type: jpg XML Mapping Question.JPG (56.1 KB, 14 views)
Reply With Quote
  #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: 3,932
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
  #3  
Old 11-19-2020, 10:51 PM
jsc_msoffice jsc_msoffice is offline Remove item from XML mapping pane Windows 10 Remove item from XML mapping pane Office 2016
Novice
Remove item from XML mapping pane
 
Join Date: Nov 2020
Posts: 3
jsc_msoffice is on a distinguished road
Default

Thank you Andrew
Reply With Quote
Reply

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
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 11:40 AM.


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