Fix for "Clipboard Error. We couldn't copy the content of the clipboard"

Anonymous
2024-04-29T02:20:04+00:00

There have been many posts on how to fix the message Clipboard Error. We couldn't copy the content to the clipboard because its in use by another application.

I tried many of the suggestions:

  • Turn off live preview
  • Clear the clipboard
  • Reboot
  • Repair Excel
  • Add special folders to the Windows directory.
  • Issue the command prompt 'Echo Off | clip
  • Use the statement "Application.CutCopyMode = False after doing a copy and before closing a file
  • Copying one cell before closing a file
  • Removing com add-ins
  • Closing all other applications
  • And a score of others

None worked. I have a test macro that works for several minutes and does many copy/paste, graphics, formatting, etc. It would display the clipboard error at least once every 2 or 3 executions, and often every execution. I used it to test all the posted cures.

What I finally realized is that the application that was using the clipboard and causing the error was Excel itself. Excel was basically not able to keep up with the command to clear the clipboard.

The cure then became simple. Slow excel down by using the statement "DoEvents" right after I issued the command "Application.CutCopyMode = False". And to put the Application.CutCopyMode = False after I was finished with any copy that I did and right before any workbook close command. I've run my macro 10 times and no clipboard error message appears.

Please give it a try.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

42 answers

Sort by: Most helpful
  1. Anonymous
    2025-06-26T20:23:34+00:00

    That's interesting that you, along with so many have this error in macros. I've seen it there too, but so far it's never prevented any copy from being successful (fingers crossed). I totally agree that the "another user" is the application itself locking the clipboard. Though, if it does prevent successful copy, I'll try that DoEvents.

    Where I've found it the most aggravating is when I'm just copying by hand. When I have to keep clearing the message, it's annoying, but the copy works fine within Excel. But it's preventing the copy into the system clipboard even when it successfully copies into the Excel clipboard. So when I want to paste outside of Excel, there's nothing to paste.

    This is going at the speed of my hands (Ctrl-C, Esc, Ctrl-C, Esc, Ctrl-C, etc.), not the speed of the computer.

    And, as I've mentioned before, my computer has never had any Logitech software or devices.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-03-07T17:28:07+00:00

    For me it was the option in logitech options + thatyou can bind copy and paste to certain buttons.

    Apparently Excel does not like it when that happens. That's when i get the message. However when I unbind the options. It works perfectly

    Thank you!

    For further details, if you don't have Excel showing in your list of applications under the "Buttons" section in Logi Options+, it's because it's using predefined customizations for Excel (and other MS products).

    Click the + to Select Applications, choose Excel, then change the button configs so no buttons are using copy/paste/redo/undo, etc.

    EDIT:

    Upon further testing, I'm unfortunately still hitting this same issue. It seemed to have lightened up a little, but right back with the same problems again, taking multiple copies before it takes.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-10-25T21:54:35+00:00

    Hey guys, as I see Microsoft nor Logitech came with a solution yet, so I will share mine that I’ve been testing for the past month. The issue for me was the combination of excel and a task called Logi+ Agent running in the background. After I’ve killed the task, the issue with copy/paste went away but also all functionality of my MX mouse. I don’t know if this is Microsoft fault or Logitech, but obviously these two programs don’t work well together. A few weeks ago the whole Logi+ programme stopped working on my computer so I had it uninstalled by IT completely. In order to get the functionality of my mouse back, I spent some time searching and

    in a widely related forum I stumbled upon a program called X-Mouse button control. The UI definitely doesn’t look so nice as the Logi+ but has most of the functionality I need. You can set up different shortcuts for different apps just like in Logi+ and even chain them. It doesn’t work with gestures on the other hand.

    It comes in two versions - standard install and “portabe” that is ideal for anyone without admin rights for installing. Just add the programme to lauch after start and thats it.

    Note: this obviously doesn’t solve the issue if you need Logi+ for your keyboard. It can only control the “basic” 5 buttons.

    I hope you find this useful!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-10-25T18:36:32+00:00

    This didn't work for me, but adding a slight delay after a particularly large copy/paste action worked

    Application.Wait Now + TimeValue("00:00:01")

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-10-23T20:36:49+00:00

    Thank for the analysis on this. Changing the macros did fix it for me, but I agree it's a Microsoft issue. I'm willing to bet if the installation could be rolled back several updates, it would disappear. I can testify that I have not see this issue previously.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments