Post by JackCannot open Clipboard.
What can cause that and how to prevent it?
The previous operation hasn't completed?
A DoEvents call might possibly help, but it might take more than just that.
If the code in which you're trying to do clipboard operations is in
(or called by) event code that was itself triggered by a clipboard
operation, then you might need to do some redesign.
I've got a utility I use occasionally, which does rather a lot of processing
from within the change event of a textbox. If I paste into that textbox, and
quickly switch to another application where I attempt to do a copy, sometimes
I get errors (in the other app!) due to blocking caused by my utility.
One of these days I'll rewrite it - probably have the change event set a very
short timer, and move the heavy processing into the timer event.
Bob
--