Macro - automate copy then close

S

Skip

Hi,

I've created a Macro using the Macro Recorder which opens a CSV file, copies
data, closes the CSV file and then pastes the data into another workbook.
The problem is each time the CSV files close I get a message 'There is a
large amout of information on the Clipboard. Do you want to be able to paste
this information into another program later?' Possible responses Yes, No or
Cancel.

The answer is always 'Yes'. Can I automate the response by adding anything
to the Macro?

Appreciate any help.

Many thanks.
 
D

Don Guillett

Have you tried
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

Top