disable message box during VBA code execution

  • Thread starter Thread starter juergenkemeter
  • Start date Start date
J

juergenkemeter

Hi,
I have a VBA Function which copies and pastes Ranges automatically.
When executing the function, there are always message boxes like
"There is a large amount of information on the clipboard. Do you want
to be able to paste this information into another program later? To
save it to the clipboard, click Yes. To delete it and free memory,
click No"

I always want to click Yes, as otherwise my code wouldnt work.
Ho can I disable the displayment of these messages?

Cheers
Juergen
 
Application.cutcopymode = false

should clear the clipboard.

You could try:

application.displayalerts=false
'your code
application.displayalerts=true
 

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

Back
Top