Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Insert link to item (http://www.outlookbanter.com/outlook-vba/29885-insert-link-item.html)

Peter Marchert October 13th 06 06:06 PM

Insert link to item
 
Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung


Eric Legault [MVP - Outlook] October 13th 06 09:58 PM

Insert link to item
 
Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung



Peter Marchert October 13th 06 10:40 PM

Insert link to item
 
Thanks Eric for your answer.

Yes, I want only to insert a link to an existing object (for example a
taskitem), not to embedd the item. I thougt it could solved like an
icon with a shortcut (so you see it, if you do this manualy), but a
text-link would be ok too.

I tried "Outlook:\\Test\Test\Tasks\Test" (without quotes), but this
does not work. If I klick on the link there pops up a message like "The
selected folder or item cannot be shown". In the help is something
wirtten of spaces in the link but there are no spaces and all folders
exists.

First "Test" is a pst-file, second "Test" is a folder for mailitems,
"Tasks" is a folder for taskitems and the last "Test" is a taskitem
with subject "Test".

Now I tried "Outlook:\\Test\Tasks\Test", but it is still the same
message.

What could be another reasen for this message?

Thanks, Peter.

PS: I stop working for this day and for tomorrow. If you reply I give
you a feedback in aproximatly 36 hours.

Eric schrieb:

Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung




Eric Legault [MVP - Outlook] October 14th 06 06:47 AM

Insert link to item
 
Here's a better approach I just remembered: use the unique EntryID property
value of the item. You can get this with code (for an open item, check
Application.ActiveInspector.CurrentItem.EntryID) or quickly using OutlookSpy
(http://www.dimastr.com). It would use this format:

outlook:\\entryID

e.g.

outlook:\\00000000C536D3A3B6579440AAB39F0A2064281E 84EA2400

Works for any loaded .pst in any folder.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Thanks Eric for your answer.

Yes, I want only to insert a link to an existing object (for example a
taskitem), not to embedd the item. I thougt it could solved like an
icon with a shortcut (so you see it, if you do this manualy), but a
text-link would be ok too.

I tried "Outlook:\\Test\Test\Tasks\Test" (without quotes), but this
does not work. If I klick on the link there pops up a message like "The
selected folder or item cannot be shown". In the help is something
wirtten of spaces in the link but there are no spaces and all folders
exists.

First "Test" is a pst-file, second "Test" is a folder for mailitems,
"Tasks" is a folder for taskitems and the last "Test" is a taskitem
with subject "Test".

Now I tried "Outlook:\\Test\Tasks\Test", but it is still the same
message.

What could be another reasen for this message?

Thanks, Peter.

PS: I stop working for this day and for tomorrow. If you reply I give
you a feedback in aproximatly 36 hours.

Eric schrieb:

Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung





Peter Marchert October 15th 06 06:53 AM

Insert link to item
 
Thank you very much, Eric, that works very good!

Peter

Eric schrieb:

Here's a better approach I just remembered: use the unique EntryID property
value of the item. You can get this with code (for an open item, check
Application.ActiveInspector.CurrentItem.EntryID) or quickly using OutlookSpy
(http://www.dimastr.com). It would use this format:

outlook:\\entryID

e.g.

outlook:\\00000000C536D3A3B6579440AAB39F0A2064281E 84EA2400

Works for any loaded .pst in any folder.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Thanks Eric for your answer.

Yes, I want only to insert a link to an existing object (for example a
taskitem), not to embedd the item. I thougt it could solved like an
icon with a shortcut (so you see it, if you do this manualy), but a
text-link would be ok too.

I tried "Outlook:\\Test\Test\Tasks\Test" (without quotes), but this
does not work. If I klick on the link there pops up a message like "The
selected folder or item cannot be shown". In the help is something
wirtten of spaces in the link but there are no spaces and all folders
exists.

First "Test" is a pst-file, second "Test" is a folder for mailitems,
"Tasks" is a folder for taskitems and the last "Test" is a taskitem
with subject "Test".

Now I tried "Outlook:\\Test\Tasks\Test", but it is still the same
message.

What could be another reasen for this message?

Thanks, Peter.

PS: I stop working for this day and for tomorrow. If you reply I give
you a feedback in aproximatly 36 hours.

Eric schrieb:

Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung






Sue Mosher [MVP-Outlook] October 19th 06 12:16 AM

Insert link to item
 
.... any folder in the default information store. It will work for other stores only after they've been accessed once during the current session.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Here's a better approach I just remembered: use the unique EntryID property
value of the item. You can get this with code (for an open item, check
Application.ActiveInspector.CurrentItem.EntryID) or quickly using OutlookSpy
(http://www.dimastr.com). It would use this format:

outlook:\\entryID

e.g.

outlook:\\00000000C536D3A3B6579440AAB39F0A2064281E 84EA2400

Works for any loaded .pst in any folder.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Thanks Eric for your answer.

Yes, I want only to insert a link to an existing object (for example a
taskitem), not to embedd the item. I thougt it could solved like an
icon with a shortcut (so you see it, if you do this manualy), but a
text-link would be ok too.

I tried "Outlook:\\Test\Test\Tasks\Test" (without quotes), but this
does not work. If I klick on the link there pops up a message like "The
selected folder or item cannot be shown". In the help is something
wirtten of spaces in the link but there are no spaces and all folders
exists.

First "Test" is a pst-file, second "Test" is a folder for mailitems,
"Tasks" is a folder for taskitems and the last "Test" is a taskitem
with subject "Test".

Now I tried "Outlook:\\Test\Tasks\Test", but it is still the same
message.

What could be another reasen for this message?

Thanks, Peter.

PS: I stop working for this day and for tomorrow. If you reply I give
you a feedback in aproximatly 36 hours.

Eric schrieb:

Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung





Peter Marchert October 19th 06 06:14 AM

Insert link to item
 
Thanks for this hint, Sue.

Sue Mosher [MVP-Outlook] schrieb:

... any folder in the default information store. It will work for other stores only after they've been accessed once during the current session.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Here's a better approach I just remembered: use the unique EntryID property
value of the item. You can get this with code (for an open item, check
Application.ActiveInspector.CurrentItem.EntryID) or quickly using OutlookSpy
(http://www.dimastr.com). It would use this format:

outlook:\\entryID

e.g.

outlook:\\00000000C536D3A3B6579440AAB39F0A2064281E 84EA2400

Works for any loaded .pst in any folder.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Thanks Eric for your answer.

Yes, I want only to insert a link to an existing object (for example a
taskitem), not to embedd the item. I thougt it could solved like an
icon with a shortcut (so you see it, if you do this manualy), but a
text-link would be ok too.

I tried "Outlook:\\Test\Test\Tasks\Test" (without quotes), but this
does not work. If I klick on the link there pops up a message like "The
selected folder or item cannot be shown". In the help is something
wirtten of spaces in the link but there are no spaces and all folders
exists.

First "Test" is a pst-file, second "Test" is a folder for mailitems,
"Tasks" is a folder for taskitems and the last "Test" is a taskitem
with subject "Test".

Now I tried "Outlook:\\Test\Tasks\Test", but it is still the same
message.

What could be another reasen for this message?

Thanks, Peter.

PS: I stop working for this day and for tomorrow. If you reply I give
you a feedback in aproximatly 36 hours.

Eric schrieb:

Do you want an embedded item or a hyperlink?

For the latter, try inserting a string like the following in the Body
property:

Outlook:\\MailboxName\Inbox\MessageSubject

For an embedded item:
- use RDO (http://www.dimastr.com)
- save the item you want to embed as an .msg file first, then add it as an
attachment

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Peter Marchert" wrote:

Hello,

now I searched 1 or 2 (or more) hours for a solution and didn`t find it
:-(.

Perhaps I only did not find the right post, so it will be fine if some
body gives me a link to it.

The problem: If you have an item (for example an appointmentitem) you
can insert a link in the body to a taskitem. That`s it what I want to
do by code.

Thanks in advandce for any help!

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- und Outlookprogrammierung







All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com