Stopping clipboard warning coming up

RyanD

New Member
Joined
Sep 21, 2002
Messages
10
My VB script copies data from one workbook and pastes it into a new workbook. It then closes the first workbook on which, I am being prompted as to whether i want to save the data on the clipboard.

Is there any way to stop this coming up? I don't want to save what's on the clip board.

XL2000

Thanks,

Ryan
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

dawsona

Board Regular
Joined
Jul 28, 2002
Messages
66
If you put in the line:

Application.DisplayAlerts = False

this will turn off all warnings. If you need to turn them back on then change false to true otherwise it will reset when the macro ends.
 

Forum statistics

Threads
1,144,363
Messages
5,723,914
Members
422,527
Latest member
JayTheKaz

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
Top