Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   add link on custom form (http://www.outlookbanter.com/outlook-vba/39848-add-link-custom-form.html)

Dasha February 5th 07 02:09 PM

add link on custom form
 
Hi!

I have such a question: On my custom form I want to have link to
another custom form.
I wrote "Outlook://Public Folders/All Public Folders/paymen/~" &
Item.Subject & "", but on post form I can't just click and open this
link, and I don't want to do it with browser. Can anyone tell me how
can I open this link?

Many thanks for any help in advance.


Sue Mosher [MVP-Outlook] February 5th 07 02:40 PM

add link on custom form
 
You mean a link to an Outlook item, right? See http://www.outlookcode.com/d/tips/formhyperlink.htm

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

"Dasha" wrote in message ups.com...
Hi!

I have such a question: On my custom form I want to have link to
another custom form.
I wrote "Outlook://Public Folders/All Public Folders/paymen/~" &
Item.Subject & "", but on post form I can't just click and open this
link, and I don't want to do it with browser. Can anyone tell me how
can I open this link?

Many thanks for any help in advance.


Dasha February 5th 07 04:26 PM

add link on custom form
 
I tried this
Sub Label1_Click()
strURL = Item.GetInspector.ModifiedFormPages _
("P.2").Controls("Label1").Caption
set objWeb = _
Application.ActiveExplorer.CommandBars.FindControl (26, 1740)
objWeb.text = strURL
End Sub,
but IE is opening... what to do?


Sue Mosher [MVP-Outlook] February 5th 07 05:26 PM

add link on custom form
 
If IE opens, it should then show the Outlook item. What's your Outlook version and the exact URL? Please quote relevant parts of earlier messages to keep the important informatoin together.

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

"Dasha" wrote in message ps.com...
I tried this
Sub Label1_Click()
strURL = Item.GetInspector.ModifiedFormPages _
("P.2").Controls("Label1").Caption
set objWeb = _
Application.ActiveExplorer.CommandBars.FindControl (26, 1740)
objWeb.text = strURL
End Sub,
but IE is opening... what to do?


Dasha February 6th 07 05:55 AM

add link on custom form
 
Sorry :)
Everything is working :)



All times are GMT +1. The time now is 05:20 AM.

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