Disabling clipboard prompt

S

sbitaxi

Hello:

When I close a workbook in a macro, I get a prompt asking "Are you
sure? There is a lot of data in the clipboard." How do I disable this
prompt?


Steven
 
G

Gord Dibben

Application.CutCopyMode = False

Entered above "End Sub"


Gord Dibben MS Excel MVP
 
D

Dave Peterson

You can clear the clipboard before closing:

application.cutcopymode = false
'code to close
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top