Disable button under Paste Options: in Office 2013 RRS feed

  • Question

  • Hi,

    I am working on Office 2013 Addins. I'm doing a customized Paste functionality, by ribbon ->

    <command idMso="Paste" enabled="true" onAction="PasteModificaton"/>

    But normal paste is happening from the Paste Options: in rt-click(context menu) and TabHome->GroupClipboard

    • Keep  Source Formatting
    • Merge Formatting
    • Keep Text Only 

    How can the above 3 buttons be disabled by ribbon or what is idMso for the buttons so that its onAction callback can be customized?

    I have gone through all the possible idMso in the list available in 'Office2013FluentUserInterfaceControlIdentifiers' like PasteTextOnly, PasteMergeFormatting etc. but these are not disabling the 3 buttons. 

    1. Rt-Click context menu

    Rt-Click context menu

    2. TabHome->groupclipboard

    How can this buttons be disabled?

    Regards, Sayan

    • Edited by SayanBera Tuesday, June 17, 2014 12:33 PM
    Tuesday, June 17, 2014 12:13 PM


  • Hi Sayan

    Looking at WordControls2013.xlsx I believe that the context menu entry may be PasteGalleryMini or PasteGallery (rows 1601 and 1602). Since these are GALLERY type controls it's not possible to work with the individual options, only the entire control. You might try setting the idMso visible = "false" or enabled="false".

    Cindy Meister, VSTO/Word MVP, my blog

    • Marked as answer by SayanBera Wednesday, June 18, 2014 5:32 AM
    Tuesday, June 17, 2014 6:14 PM

All replies