This can be beneficial to other community members reading this thread. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not.
Why does control v not keep source formatting in word free#
MSDN Support, feel free to contact command PasteSourceFormatting doesn't work for me with Office 2016 and there is no ui error. If you have any compliments or complaints to Choose 'Unformatted Text' on the pop-up window, then click 'OK. Click the 'Edit' tab at the top of the screen, then select 'Paste Special' from the pull-down menu. This can be beneficial to other community members reading this thread. Hello, I am an independent advisor, and I am trying to help other users in Community with my experience in Microsoft products. If you want to customize all the Copy/Paste/Paste Special buttons or commands, I suggest you hide built-in ribbon and gallery and create your own buttons. Intercepting Word 2010 Paste Commands is not as easy as Unfortunately, we are unable to customize the gallery. "Paste - Keep Source Formatting" should be in the PasteGallery (in the ribbon) or PasteGalleryMini (in the context menu). The command PasteSourceFormatting doesn't work for me with Office 2016 and there is no ui error. Thanks for whatever advice you can provide. Wrong idMso, or maybe this is altogether not possible? All the other statements seem to work fine, so I'm a bit lost as to what I'm doing wrong. In this case, I just can't catch the paste. except when the user issues a paste using the right-click context menu (right click, then "Paste - Keep Source Formatting"). My onAction functions are all triggered as expected. MessageBox.Show("Caught context menu Paste Keep Formatting") Public void OnButtonPasteSourceFormatting(Office.IRibbonControl control, ref bool CancelDefault) I am able to catch the Keyboard (Ctrl-C/Ctrl-V) and Ribbon Buttonįor discussion, it's safe to assume my onAction functions all just issue a MessageBox.Show("Handler foo has run."), like: In short, I am trying to notice/hook cut & paste operations. I'm running VS2013 Community, writing a VSTO Word Add-In using C#, and my development machine is Win 8.x running Office 2013. If done under macro control, the culprit could be an add-in or it could be a macro set up in one of your documents. Either of these reasons could be accomplished under macro control or through purposeful customization. One is that the Ctrl+V shortcut has been reassigned to a different purpose, and the second is that its original purpose has been removed. There are a few possible reasons why this is happening. In short, how do I hook/catch the context menu "Paste - Keep Source Formatting" button? This is what I've done: Roger wonders why it won't work anymore in Word. I've done some digging through the forums and docs, but haven't found what I need for this one.