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?
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?