Copied data prompt

R

RichardDC

I'm writing a macro that opens one file, copies the data, closes th
file opens another spreadsheet, pastes the data and then runs anothe
macro.

The macro works but I want to get rid of or answer "yes" to the promp
that asks you if you wish to keep the copied data in the clipboard s
that once the macro runs you don't have to answer any prompts
 
R

Roadie

You should put the DisplayAlerts on False:
Application.DisplayAlerts = False

and just before the end of the macro, you'll put it on again:
Application.DisplayAlerts = Tru
 

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