Remove annoying message "Do you want to save data on clipboard"

Wamhoi

New Member
Joined
Mar 4, 2011
Messages
48
So I created a VBA that closes an activeworkbook but then I get this message that says "There is a large amount of information on the clipboard. Do you want to be able to paste this information into another program later?"

I want to always say no.

Does anyone know how I can do this?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I haven't tested this, but I think
Code:
Application.DisplayAlerts=False
will do this.

You might want to set it back to True afterwards, if there are other alerts that you do want to see.
 
Upvote 0
Have you tried clearing the clipboard after copying your data?
Application.CutCopyMode = False
 
Upvote 0
Perfect! Application.cutcopymode = false did the trick. I didn't test the other but I'm sure it does the same.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,563
Messages
6,120,248
Members
448,952
Latest member
kjurney

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