Does Application.CutCopyMode = False clear the Excel clipboard or not? Confused.

d0rian

Active Member
Joined
May 30, 2015
Messages
313
Office Version
  1. 365
I've gotten in the habit of pasting Application.CutCopyMode = False at the end of nearly any VBA code that executes any kind of Copy/Paste function, since I read somewhere that it essentially clears any items from the Clipboard / releases any memory associated with it (and I'm often doing quite large copy/paste tasks, e.g. 10K rows of data).

But in trying to troubleshoot a weird Excel hang, I read that it could be related to too much data in the clipboard, which didn't make sense b/c I thought the Application.CutCopyMode = False cleared that...but I opened the Clipboard pane on the left-side of my Excel window and lo and behold see 6 items in there.

So is Application.CutCopyMode = False not actually clearing the Excel clipboard after all? Is there some other VBA code I need to run in order to do so?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Well, it does clear the system clipboard.
But Excel has an additional one which can store multiple items and can put them back in the clipboard later on.
At the moment I am clueless how one can control this.
Code:
[TABLE="width: 64"]
<tbody>[TR]
  [TD="width: 64"]Application.DisplayClipboardWindow=True[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top