A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Inserting Hyperlink into Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 10th 06, 07:31 PM posted to microsoft.public.outlook.program_forms
Kathy
external usenet poster
 
Posts: 95
Default Inserting Hyperlink into Form

I'm trying to insert a hyperlink into a text box on a form, but have been
unsuccessful. Can someone provide some help. Thank you.
Ads
  #2  
Old January 11th 06, 07:27 AM posted to microsoft.public.outlook.program_forms
Sachin Sancheti
external usenet poster
 
Posts: 7
Default Inserting Hyperlink into Form

Some workaround.
Set the forecolor to blue and text underlined. So the text would appear
as hyperlink.
Trap the click event of the text box and open a new IE to navigate to
the hyperlink.

  #3  
Old January 11th 06, 01:56 PM posted to microsoft.public.outlook.program_forms
Kathy
external usenet poster
 
Posts: 95
Default Inserting Hyperlink into Form

Could you explain a little more of how to "trap the click event of the text
box"


"Sachin Sancheti" wrote:

Some workaround.
Set the forecolor to blue and text underlined. So the text would appear
as hyperlink.
Trap the click event of the text box and open a new IE to navigate to
the hyperlink.


  #4  
Old January 12th 06, 10:13 PM posted to microsoft.public.outlook.program_forms
Tom R
external usenet poster
 
Posts: 1
Default Inserting Hyperlink into Form

Kathy wrote:
Could you explain a little more of how to "trap the click event of the text
box"


"Sachin Sancheti" wrote:

Some workaround.
Set the forecolor to blue and text underlined. So the text would appear
as hyperlink.
Trap the click event of the text box and open a new IE to navigate to
the hyperlink.



Kathy,

You need to do two things. First, in design mode, click on the text
control you intend to use for the hyperlink. Right click and choose
Advanced Properties. In the Tag section, put the URL for the hyperlink
here. Then, in the Script Editor, here's what you'll need to do to
trap the event: (this is sample code, assuming your text control is
named lblClick)

Sub lblClick_Click()
Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate Item.GetInspector.ModifiedFormPages _
("P.2").Controls("lblClick").Tag
objWeb.Visible = True
Set objWeb = Nothing
End Sub

I'm using a Post form type, so the GetInspector.ModifiedFormPages page
needs to match the page for your form. This will launch a new browser
window and navigate to the site in the Tag property.

Hope this helps.

Tom Renfro
Integris Health, Oklahoma City

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting Email Signature Talia Outlook - General Queries 2 March 6th 06 08:03 PM
hyperlink failure Popster Outlook - Installation 1 February 28th 06 07:20 PM
inserting address book into website I386 Outlook - Using Contacts 4 February 26th 06 08:01 PM
Inserting a picture in the message body of a custom form groom Outlook - General Queries 1 February 8th 06 10:08 PM
Hyperlink Color Brian Outlook - Installation 0 January 17th 06 06:57 PM


All times are GMT +1. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.