ClipboardContent object in BeforeItemPaste

C

CLS

In an Outlook com object, I'm checking message classes in the
BeforeItemPaste event, and cancelling the event if the message has
been archived. This works fine when moving items between folders in
the Explorer

But when items are being moved from the Advanced Find window, the
ClipboardContent variable exists, but the Count property is 0, and I
cannot access its contents. The variable is a variant with underlying
type of object. I'm trying to convert it to something that can be
read and understood by Outlook. I've tried setting ClipboardContent
to a strongly-typed variable, i.e. Collection or MailItem, but nothing
has worked.

Does anyone know how to get at the contents of the ClipboardContent
object when called by AdvancedFind?
 

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