olEmbedItem

  • Thread starter Thread starter Thomas R. Shannon
  • Start date Start date
T

Thomas R. Shannon

I find that I can easily embed a link to an email into a journal entry
with the following command:
Set objJouranlAttachment = objJournal.Attachments.Add(objItem,
olEmbedItem)
However when I use a similar command to embed the same email into a task
entry, I get a link that can't be opened (the command in the context menu
is grayed out). Can someone explain why this happens and how I can get
around it?
Thanks,

Tom S.
 
Known issue, apparently related to some unspecified security concern.
It doesn't make much sense to me either, but that's the way it works
(or doesn't work, in this case). A workaround would be to use a text
link; see http://www.slipstick.com/outlook/links.htm

Thanks. I'm currently embedding the link into journal entries, then embedding
the journal entry into the task. This has the advantage of keeping the
link if I move the message file between folders. Perhaps a link in the
form <outlook://entryID> will do the same. I'll see what works.
Tom S.
 
Very sneaky. You're definitely an Outlook programmer. <g>

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I'm getting better. :)

Outlook is an incredible tool when you can customize it like this. I'm
thoroughly enjoying it.

Thanks, Sue.

Tom S.
 
Back
Top