Data on clipboard message...

  • Thread starter Thread starter Dale
  • Start date Start date
D

Dale

Hi all,
I have a simple macro that copies a range of cells and pastes
the copied cells into a different spreadsheet.
In doing this I open the file I wish to copy from.. once copied and pasted,
the macro closes the file. I am then asked if i'd like to keep the data on
the clip board for use else where.

How do I stop this message or reply 'NO' in VBA?

Help would we so much apreaciated.

Regards,
Dale
 
Hi Dale,
I am then asked if i'd like to keep the data on
the clip board for use else where.

How do I stop this message or reply 'NO' in VBA?

Add this line after the paste is done:

Application.CutCopyMode=False

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com
 

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