how do i empty the clipboard from within an excel macro


S

surreyjed

My macro opens a series of files (approx 32) and copies information from them
into the main file, closing the file with the information each time. The
macro works OK, except each time it closes a file it requires manual
intervention- asking if I want to empty the clipboard of the large amounts
data stored in it. I would prefer that the macro automatically emptied the
clipboard without the need for manual input.

-any help please?
 
Ad

Advertisements

D

Dave Peterson

application.cutcopymode = false
My macro opens a series of files (approx 32) and copies information from them
into the main file, closing the file with the information each time. The
macro works OK, except each time it closes a file it requires manual
intervention- asking if I want to empty the clipboard of the large amounts
data stored in it. I would prefer that the macro automatically emptied the
clipboard without the need for manual input.

-any help please?
 
D

Dave Peterson

That didn't work for me in xl2003.

What was it supposed to do?

In this case, it sounds like the OP was describing the same situation that you
described.
 
J

JLGWhiz

I didn't try it Dave. I saw it on the MVP web site and it said that the
snippet would clear the clipboard. Now I have tried it and I think something
was leff out of the information on the web site. It asked for the object
variable to be set. I'll look into it and find out what is missing.
 
Ad

Advertisements

Ad

Advertisements


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