How to clear clipboard content programatically

G

Guest

Hi,

I am writing a macro program which copies the contents whole sheet1 of
workbook1 and paste it to sheet1 to workbook2. After that, the program closes
workbook1. But I always got a prompt and saying that I have a large amount of
information in Clipboard and it askes if I want to be able to paste into
another program later. Actually I don't want this prompt and closes workbook1
directly. Anyone knows how to bypass this programatically?
Thanks!

Ivan
 
G

Guest

Ivan:

try,
Use Application.CutCopyMode = False

example,

****.copy
.................

****.Past
Application.CutCopyMode = False
 

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