Forum Discussion

dan_schlesinger4567's avatar
dan_schlesinger4567
Copper Contributor
Feb 28, 2024
Solved

Enter, in text box

This has been issue forever.  Can you remove the paste (what happens) when you click enter in a text box in Excel.  If you have a huge clipboard, it kills your file.
  • djclements's avatar
    Feb 29, 2024

    dan_schlesinger4567 I'm kind of with mathetes on this one, to the extent that I've never heard of it being an issue in my 20+ years of working with Excel. I had no idea the Enter key will perform the Paste command when in CutCopyMode. I supposed it's because of the keyboard shortcuts I've grown accustomed to:

    • Ctrl+X to Cut --> Ctrl+V to Paste
    • Ctrl+C to Copy --> Ctrl+Alt+V to open the Paste Special dialog box
    • Esc to exit CutCopyMode

    Also, I don't navigate the spreadsheet using the Enter key, so I never discovered this little tidbit before. I can see, though, how it would be an issue within a textbox, as the natural way to start a new line is to press the Enter key; and, if you forget to press the Esc key to exit CutCopyMode before editing a textbox, the problem occurs. However, I did notice in my ten minutes of testing that pressing Shift+Enter within a textbox will also start a new line but will bypass the Paste command. I don't suppose this is a keyboard habit you wish to develop at this stage, nor would recommending that you always press the Esc key before editing a textbox, so I'm not going to offer either as a suggested solution, but rather, just something to be aware of.

     

    Having said all that, I did a quick internet search and could not find a way to disable this behavior from within Excel. However, in an old Microsoft support thread in which the exact same problem was described, some users who actually wanted this behavior to occur claimed that it all of a sudden stopped working. The reason, they discovered, was because they had third-party clipboard managers installed that were interfering with Excels clipboard management. The two apps mentioned in the thread were Ditto and Clipdiary. Now, I'm not about to test either of these apps personally, nor would I recommend that you do either without carefully researching them first. If you wish to try either one, please do so at your own risk.

     

    For more information, please see: https://answers.microsoft.com/en-us/msoffice/forum/all/disable-pasting-when-enter-is-pressed-in-excel... 

Resources