If the above suggestions don't help, I would look for a different way. This old method is for copying data to the clipboard, which as I understand it, is becoming more flaky in later OS'. Kind of like how SendKeys has fallen out of favour. If that doesn't sound attractive, you can try integrating API calls to get at the clipboard. AFAIC, something like this would be easier than API calls.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.