Clear Clipboard

S

StanC

I'm searching through all files in a folder to copy selected strings to a
report. When I test the sub my Paste action often pastes the last item on
the clipboard to the report where it should paste nothing.

I'm working out an "If...then" statement to make the routine skip the
paste action if the search returns no targets.

But, I think I can see where clearing the clipboard may be useful down the
line. Is there a piece of code that clears the clipboard in Word 20003?
 

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